-
Notifications
You must be signed in to change notification settings - Fork 6
/
resources.pb.go
188 lines (161 loc) · 8.15 KB
/
resources.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/resources.proto
package peer
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import common3 "github.com/hyperledger/fabric/protos/common"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// APIResource represents an API resource in the peer whose ACL is determined by the policy_ref field
type APIResource struct {
PolicyRef string `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef" json:"policy_ref,omitempty"`
}
func (m *APIResource) Reset() { *m = APIResource{} }
func (m *APIResource) String() string { return proto.CompactTextString(m) }
func (*APIResource) ProtoMessage() {}
func (*APIResource) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} }
func (m *APIResource) GetPolicyRef() string {
if m != nil {
return m.PolicyRef
}
return ""
}
// ChaincodeIdentifier identifies a piece of chaincode. For a peer to accept invocations of
// this chaincode, the hash of the installed code must match, as must the version string
// included with the install command.
type ChaincodeIdentifier struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
}
func (m *ChaincodeIdentifier) Reset() { *m = ChaincodeIdentifier{} }
func (m *ChaincodeIdentifier) String() string { return proto.CompactTextString(m) }
func (*ChaincodeIdentifier) ProtoMessage() {}
func (*ChaincodeIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{1} }
func (m *ChaincodeIdentifier) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
func (m *ChaincodeIdentifier) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
// ChaincodeValidation instructs the peer how transactions for this chaincode should be
// validated. The only validation mechanism which ships with fabric today is the standard
// 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy
// which checks that a sufficient number of signatures have been included. The 'arguement'
// field encodes any parameters required by the validation implementation.
type ChaincodeValidation struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"`
}
func (m *ChaincodeValidation) Reset() { *m = ChaincodeValidation{} }
func (m *ChaincodeValidation) String() string { return proto.CompactTextString(m) }
func (*ChaincodeValidation) ProtoMessage() {}
func (*ChaincodeValidation) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{2} }
func (m *ChaincodeValidation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ChaincodeValidation) GetArgument() []byte {
if m != nil {
return m.Argument
}
return nil
}
// VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the
// argument field of the ChaincodeValidation message.
type VSCCArgs struct {
EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef" json:"endorsement_policy_ref,omitempty"`
}
func (m *VSCCArgs) Reset() { *m = VSCCArgs{} }
func (m *VSCCArgs) String() string { return proto.CompactTextString(m) }
func (*VSCCArgs) ProtoMessage() {}
func (*VSCCArgs) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{3} }
func (m *VSCCArgs) GetEndorsementPolicyRef() string {
if m != nil {
return m.EndorsementPolicyRef
}
return ""
}
// ChaincodeEndorsement instructs the peer how transactions should be endorsed. The only
// endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism.
// This code simply simulates the proposal to generate a RW set, then signs the result
// using the peer's local signing identity.
type ChaincodeEndorsement struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *ChaincodeEndorsement) Reset() { *m = ChaincodeEndorsement{} }
func (m *ChaincodeEndorsement) String() string { return proto.CompactTextString(m) }
func (*ChaincodeEndorsement) ProtoMessage() {}
func (*ChaincodeEndorsement) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{4} }
func (m *ChaincodeEndorsement) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// ConfigTree encapsulates channel and resources configuration of a channel.
// Both configurations are represented as common.Config
type ConfigTree struct {
ChannelConfig *common3.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig" json:"channel_config,omitempty"`
ResourcesConfig *common3.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig" json:"resources_config,omitempty"`
}
func (m *ConfigTree) Reset() { *m = ConfigTree{} }
func (m *ConfigTree) String() string { return proto.CompactTextString(m) }
func (*ConfigTree) ProtoMessage() {}
func (*ConfigTree) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{5} }
func (m *ConfigTree) GetChannelConfig() *common3.Config {
if m != nil {
return m.ChannelConfig
}
return nil
}
func (m *ConfigTree) GetResourcesConfig() *common3.Config {
if m != nil {
return m.ResourcesConfig
}
return nil
}
func init() {
proto.RegisterType((*APIResource)(nil), "protos.APIResource")
proto.RegisterType((*ChaincodeIdentifier)(nil), "protos.ChaincodeIdentifier")
proto.RegisterType((*ChaincodeValidation)(nil), "protos.ChaincodeValidation")
proto.RegisterType((*VSCCArgs)(nil), "protos.VSCCArgs")
proto.RegisterType((*ChaincodeEndorsement)(nil), "protos.ChaincodeEndorsement")
proto.RegisterType((*ConfigTree)(nil), "protos.ConfigTree")
}
func init() { proto.RegisterFile("peer/resources.proto", fileDescriptor10) }
var fileDescriptor10 = []byte{
// 342 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x4b, 0x4b, 0xeb, 0x40,
0x14, 0xc7, 0x69, 0xb9, 0xdc, 0xdb, 0x9e, 0xf6, 0x56, 0x19, 0xab, 0x94, 0x82, 0x20, 0x59, 0xa9,
0x48, 0x02, 0x3e, 0x16, 0xee, 0xac, 0xa1, 0x8b, 0xae, 0x2c, 0x51, 0xba, 0x70, 0x53, 0xa6, 0x93,
0x93, 0x64, 0x20, 0x99, 0x09, 0x67, 0x52, 0xb1, 0x1b, 0x3f, 0xbb, 0x64, 0xa6, 0x8d, 0x05, 0xbb,
0xca, 0x79, 0xfc, 0xce, 0x3f, 0xe7, 0x31, 0x30, 0x2c, 0x11, 0x29, 0x20, 0x34, 0x7a, 0x4d, 0x02,
0x8d, 0x5f, 0x92, 0xae, 0x34, 0xfb, 0x6b, 0x3f, 0x66, 0x7c, 0x2a, 0x74, 0x51, 0x68, 0x15, 0x08,
0xad, 0x12, 0x99, 0x56, 0x9f, 0x2e, 0xed, 0xdd, 0x40, 0x6f, 0x32, 0x9f, 0x45, 0xdb, 0x22, 0x76,
0x0e, 0x50, 0xea, 0x5c, 0x8a, 0xcd, 0x92, 0x30, 0x19, 0xb5, 0x2e, 0x5a, 0x97, 0xdd, 0xa8, 0xeb,
0x22, 0x11, 0x26, 0x5e, 0x08, 0x27, 0x61, 0xc6, 0xa5, 0x12, 0x3a, 0xc6, 0x59, 0x8c, 0xaa, 0x92,
0x89, 0x44, 0x62, 0x0c, 0xfe, 0x64, 0xdc, 0x64, 0x96, 0xef, 0x47, 0xd6, 0x66, 0x23, 0xf8, 0xf7,
0x81, 0x64, 0xa4, 0x56, 0xa3, 0xb6, 0x95, 0xd9, 0xb9, 0xde, 0x74, 0x4f, 0x64, 0xc1, 0x73, 0x19,
0xf3, 0x4a, 0x6a, 0x55, 0x8b, 0x28, 0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