forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configtx.pb.go
664 lines (598 loc) · 27.5 KB
/
configtx.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/configtx.proto
package common // import "github.com/hyperledger/fabric/protos/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// ConfigEnvelope is designed to contain _all_ configuration for a chain with no dependency
// on previous configuration transactions.
//
// It is generated with the following scheme:
// 1. Retrieve the existing configuration
// 2. Note the config properties (ConfigValue, ConfigPolicy, ConfigGroup) to be modified
// 3. Add any intermediate ConfigGroups to the ConfigUpdate.read_set (sparsely)
// 4. Add any additional desired dependencies to ConfigUpdate.read_set (sparsely)
// 5. Modify the config properties, incrementing each version by 1, set them in the ConfigUpdate.write_set
// Note: any element not modified but specified should already be in the read_set, so may be specified sparsely
// 6. Create ConfigUpdate message and marshal it into ConfigUpdateEnvelope.update and encode the required signatures
// a) Each signature is of type ConfigSignature
// b) The ConfigSignature signature is over the concatenation of signature_header and the ConfigUpdate bytes (which includes a ChainHeader)
// 5. Submit new Config for ordering in Envelope signed by submitter
// a) The Envelope Payload has data set to the marshaled ConfigEnvelope
// b) The Envelope Payload has a header of type Header.Type.CONFIG_UPDATE
//
// The configuration manager will verify:
// 1. All items in the read_set exist at the read versions
// 2. All items in the write_set at a different version than, or not in, the read_set have been appropriately signed according to their mod_policy
// 3. The new configuration satisfies the ConfigSchema
type ConfigEnvelope struct {
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
LastUpdate *Envelope `protobuf:"bytes,2,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigEnvelope) Reset() { *m = ConfigEnvelope{} }
func (m *ConfigEnvelope) String() string { return proto.CompactTextString(m) }
func (*ConfigEnvelope) ProtoMessage() {}
func (*ConfigEnvelope) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{0}
}
func (m *ConfigEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigEnvelope.Unmarshal(m, b)
}
func (m *ConfigEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigEnvelope.Marshal(b, m, deterministic)
}
func (dst *ConfigEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigEnvelope.Merge(dst, src)
}
func (m *ConfigEnvelope) XXX_Size() int {
return xxx_messageInfo_ConfigEnvelope.Size(m)
}
func (m *ConfigEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigEnvelope proto.InternalMessageInfo
func (m *ConfigEnvelope) GetConfig() *Config {
if m != nil {
return m.Config
}
return nil
}
func (m *ConfigEnvelope) GetLastUpdate() *Envelope {
if m != nil {
return m.LastUpdate
}
return nil
}
type ConfigGroupSchema struct {
Groups map[string]*ConfigGroupSchema `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Values map[string]*ConfigValueSchema `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Policies map[string]*ConfigPolicySchema `protobuf:"bytes,3,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigGroupSchema) Reset() { *m = ConfigGroupSchema{} }
func (m *ConfigGroupSchema) String() string { return proto.CompactTextString(m) }
func (*ConfigGroupSchema) ProtoMessage() {}
func (*ConfigGroupSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{1}
}
func (m *ConfigGroupSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigGroupSchema.Unmarshal(m, b)
}
func (m *ConfigGroupSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigGroupSchema.Marshal(b, m, deterministic)
}
func (dst *ConfigGroupSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigGroupSchema.Merge(dst, src)
}
func (m *ConfigGroupSchema) XXX_Size() int {
return xxx_messageInfo_ConfigGroupSchema.Size(m)
}
func (m *ConfigGroupSchema) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigGroupSchema.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigGroupSchema proto.InternalMessageInfo
func (m *ConfigGroupSchema) GetGroups() map[string]*ConfigGroupSchema {
if m != nil {
return m.Groups
}
return nil
}
func (m *ConfigGroupSchema) GetValues() map[string]*ConfigValueSchema {
if m != nil {
return m.Values
}
return nil
}
func (m *ConfigGroupSchema) GetPolicies() map[string]*ConfigPolicySchema {
if m != nil {
return m.Policies
}
return nil
}
type ConfigValueSchema struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigValueSchema) Reset() { *m = ConfigValueSchema{} }
func (m *ConfigValueSchema) String() string { return proto.CompactTextString(m) }
func (*ConfigValueSchema) ProtoMessage() {}
func (*ConfigValueSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{2}
}
func (m *ConfigValueSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigValueSchema.Unmarshal(m, b)
}
func (m *ConfigValueSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigValueSchema.Marshal(b, m, deterministic)
}
func (dst *ConfigValueSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigValueSchema.Merge(dst, src)
}
func (m *ConfigValueSchema) XXX_Size() int {
return xxx_messageInfo_ConfigValueSchema.Size(m)
}
func (m *ConfigValueSchema) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigValueSchema.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigValueSchema proto.InternalMessageInfo
type ConfigPolicySchema struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigPolicySchema) Reset() { *m = ConfigPolicySchema{} }
func (m *ConfigPolicySchema) String() string { return proto.CompactTextString(m) }
func (*ConfigPolicySchema) ProtoMessage() {}
func (*ConfigPolicySchema) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{3}
}
func (m *ConfigPolicySchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigPolicySchema.Unmarshal(m, b)
}
func (m *ConfigPolicySchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigPolicySchema.Marshal(b, m, deterministic)
}
func (dst *ConfigPolicySchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigPolicySchema.Merge(dst, src)
}
func (m *ConfigPolicySchema) XXX_Size() int {
return xxx_messageInfo_ConfigPolicySchema.Size(m)
}
func (m *ConfigPolicySchema) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigPolicySchema.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigPolicySchema proto.InternalMessageInfo
// Config represents the config for a particular channel
type Config struct {
Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
ChannelGroup *ConfigGroup `protobuf:"bytes,2,opt,name=channel_group,json=channelGroup,proto3" json:"channel_group,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Config) Reset() { *m = Config{} }
func (m *Config) String() string { return proto.CompactTextString(m) }
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{4}
}
func (m *Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Config.Unmarshal(m, b)
}
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
}
func (dst *Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Config.Merge(dst, src)
}
func (m *Config) XXX_Size() int {
return xxx_messageInfo_Config.Size(m)
}
func (m *Config) XXX_DiscardUnknown() {
xxx_messageInfo_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Config proto.InternalMessageInfo
func (m *Config) GetSequence() uint64 {
if m != nil {
return m.Sequence
}
return 0
}
func (m *Config) GetChannelGroup() *ConfigGroup {
if m != nil {
return m.ChannelGroup
}
return nil
}
type ConfigUpdateEnvelope struct {
ConfigUpdate []byte `protobuf:"bytes,1,opt,name=config_update,json=configUpdate,proto3" json:"config_update,omitempty"`
Signatures []*ConfigSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigUpdateEnvelope) Reset() { *m = ConfigUpdateEnvelope{} }
func (m *ConfigUpdateEnvelope) String() string { return proto.CompactTextString(m) }
func (*ConfigUpdateEnvelope) ProtoMessage() {}
func (*ConfigUpdateEnvelope) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{5}
}
func (m *ConfigUpdateEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigUpdateEnvelope.Unmarshal(m, b)
}
func (m *ConfigUpdateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigUpdateEnvelope.Marshal(b, m, deterministic)
}
func (dst *ConfigUpdateEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigUpdateEnvelope.Merge(dst, src)
}
func (m *ConfigUpdateEnvelope) XXX_Size() int {
return xxx_messageInfo_ConfigUpdateEnvelope.Size(m)
}
func (m *ConfigUpdateEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigUpdateEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigUpdateEnvelope proto.InternalMessageInfo
func (m *ConfigUpdateEnvelope) GetConfigUpdate() []byte {
if m != nil {
return m.ConfigUpdate
}
return nil
}
func (m *ConfigUpdateEnvelope) GetSignatures() []*ConfigSignature {
if m != nil {
return m.Signatures
}
return nil
}
// ConfigUpdate is used to submit a subset of config and to have the orderer apply to Config
// it is always submitted inside a ConfigUpdateEnvelope which allows the addition of signatures
// resulting in a new total configuration. The update is applied as follows:
// 1. The versions from all of the elements in the read_set is verified against the versions in the existing config.
// If there is a mismatch in the read versions, then the config update fails and is rejected.
// 2. Any elements in the write_set with the same version as the read_set are ignored.
// 3. The corresponding mod_policy for every remaining element in the write_set is collected.
// 4. Each policy is checked against the signatures from the ConfigUpdateEnvelope, any failing to verify are rejected
// 5. The write_set is applied to the Config and the ConfigGroupSchema verifies that the updates were legal
type ConfigUpdate struct {
ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
ReadSet *ConfigGroup `protobuf:"bytes,2,opt,name=read_set,json=readSet,proto3" json:"read_set,omitempty"`
WriteSet *ConfigGroup `protobuf:"bytes,3,opt,name=write_set,json=writeSet,proto3" json:"write_set,omitempty"`
IsolatedData map[string][]byte `protobuf:"bytes,5,rep,name=isolated_data,json=isolatedData,proto3" json:"isolated_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigUpdate) Reset() { *m = ConfigUpdate{} }
func (m *ConfigUpdate) String() string { return proto.CompactTextString(m) }
func (*ConfigUpdate) ProtoMessage() {}
func (*ConfigUpdate) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{6}
}
func (m *ConfigUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigUpdate.Unmarshal(m, b)
}
func (m *ConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigUpdate.Marshal(b, m, deterministic)
}
func (dst *ConfigUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigUpdate.Merge(dst, src)
}
func (m *ConfigUpdate) XXX_Size() int {
return xxx_messageInfo_ConfigUpdate.Size(m)
}
func (m *ConfigUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigUpdate proto.InternalMessageInfo
func (m *ConfigUpdate) GetChannelId() string {
if m != nil {
return m.ChannelId
}
return ""
}
func (m *ConfigUpdate) GetReadSet() *ConfigGroup {
if m != nil {
return m.ReadSet
}
return nil
}
func (m *ConfigUpdate) GetWriteSet() *ConfigGroup {
if m != nil {
return m.WriteSet
}
return nil
}
func (m *ConfigUpdate) GetIsolatedData() map[string][]byte {
if m != nil {
return m.IsolatedData
}
return nil
}
// ConfigGroup is the hierarchical data structure for holding config
type ConfigGroup struct {
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Groups map[string]*ConfigGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Values map[string]*ConfigValue `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Policies map[string]*ConfigPolicy `protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
ModPolicy string `protobuf:"bytes,5,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigGroup) Reset() { *m = ConfigGroup{} }
func (m *ConfigGroup) String() string { return proto.CompactTextString(m) }
func (*ConfigGroup) ProtoMessage() {}
func (*ConfigGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{7}
}
func (m *ConfigGroup) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigGroup.Unmarshal(m, b)
}
func (m *ConfigGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigGroup.Marshal(b, m, deterministic)
}
func (dst *ConfigGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigGroup.Merge(dst, src)
}
func (m *ConfigGroup) XXX_Size() int {
return xxx_messageInfo_ConfigGroup.Size(m)
}
func (m *ConfigGroup) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigGroup.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigGroup proto.InternalMessageInfo
func (m *ConfigGroup) GetVersion() uint64 {
if m != nil {
return m.Version
}
return 0
}
func (m *ConfigGroup) GetGroups() map[string]*ConfigGroup {
if m != nil {
return m.Groups
}
return nil
}
func (m *ConfigGroup) GetValues() map[string]*ConfigValue {
if m != nil {
return m.Values
}
return nil
}
func (m *ConfigGroup) GetPolicies() map[string]*ConfigPolicy {
if m != nil {
return m.Policies
}
return nil
}
func (m *ConfigGroup) GetModPolicy() string {
if m != nil {
return m.ModPolicy
}
return ""
}
// ConfigValue represents an individual piece of config data
type ConfigValue struct {
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
ModPolicy string `protobuf:"bytes,3,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigValue) Reset() { *m = ConfigValue{} }
func (m *ConfigValue) String() string { return proto.CompactTextString(m) }
func (*ConfigValue) ProtoMessage() {}
func (*ConfigValue) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{8}
}
func (m *ConfigValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigValue.Unmarshal(m, b)
}
func (m *ConfigValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigValue.Marshal(b, m, deterministic)
}
func (dst *ConfigValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigValue.Merge(dst, src)
}
func (m *ConfigValue) XXX_Size() int {
return xxx_messageInfo_ConfigValue.Size(m)
}
func (m *ConfigValue) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigValue.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigValue proto.InternalMessageInfo
func (m *ConfigValue) GetVersion() uint64 {
if m != nil {
return m.Version
}
return 0
}
func (m *ConfigValue) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func (m *ConfigValue) GetModPolicy() string {
if m != nil {
return m.ModPolicy
}
return ""
}
type ConfigPolicy struct {
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
ModPolicy string `protobuf:"bytes,3,opt,name=mod_policy,json=modPolicy,proto3" json:"mod_policy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigPolicy) Reset() { *m = ConfigPolicy{} }
func (m *ConfigPolicy) String() string { return proto.CompactTextString(m) }
func (*ConfigPolicy) ProtoMessage() {}
func (*ConfigPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{9}
}
func (m *ConfigPolicy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigPolicy.Unmarshal(m, b)
}
func (m *ConfigPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigPolicy.Marshal(b, m, deterministic)
}
func (dst *ConfigPolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigPolicy.Merge(dst, src)
}
func (m *ConfigPolicy) XXX_Size() int {
return xxx_messageInfo_ConfigPolicy.Size(m)
}
func (m *ConfigPolicy) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigPolicy.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigPolicy proto.InternalMessageInfo
func (m *ConfigPolicy) GetVersion() uint64 {
if m != nil {
return m.Version
}
return 0
}
func (m *ConfigPolicy) GetPolicy() *Policy {
if m != nil {
return m.Policy
}
return nil
}
func (m *ConfigPolicy) GetModPolicy() string {
if m != nil {
return m.ModPolicy
}
return ""
}
type ConfigSignature struct {
SignatureHeader []byte `protobuf:"bytes,1,opt,name=signature_header,json=signatureHeader,proto3" json:"signature_header,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigSignature) Reset() { *m = ConfigSignature{} }
func (m *ConfigSignature) String() string { return proto.CompactTextString(m) }
func (*ConfigSignature) ProtoMessage() {}
func (*ConfigSignature) Descriptor() ([]byte, []int) {
return fileDescriptor_configtx_f1e09584bdb3a224, []int{10}
}
func (m *ConfigSignature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigSignature.Unmarshal(m, b)
}
func (m *ConfigSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigSignature.Marshal(b, m, deterministic)
}
func (dst *ConfigSignature) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigSignature.Merge(dst, src)
}
func (m *ConfigSignature) XXX_Size() int {
return xxx_messageInfo_ConfigSignature.Size(m)
}
func (m *ConfigSignature) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigSignature.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigSignature proto.InternalMessageInfo
func (m *ConfigSignature) GetSignatureHeader() []byte {
if m != nil {
return m.SignatureHeader
}
return nil
}
func (m *ConfigSignature) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func init() {
proto.RegisterType((*ConfigEnvelope)(nil), "common.ConfigEnvelope")
proto.RegisterType((*ConfigGroupSchema)(nil), "common.ConfigGroupSchema")
proto.RegisterMapType((map[string]*ConfigGroupSchema)(nil), "common.ConfigGroupSchema.GroupsEntry")
proto.RegisterMapType((map[string]*ConfigPolicySchema)(nil), "common.ConfigGroupSchema.PoliciesEntry")
proto.RegisterMapType((map[string]*ConfigValueSchema)(nil), "common.ConfigGroupSchema.ValuesEntry")
proto.RegisterType((*ConfigValueSchema)(nil), "common.ConfigValueSchema")
proto.RegisterType((*ConfigPolicySchema)(nil), "common.ConfigPolicySchema")
proto.RegisterType((*Config)(nil), "common.Config")
proto.RegisterType((*ConfigUpdateEnvelope)(nil), "common.ConfigUpdateEnvelope")
proto.RegisterType((*ConfigUpdate)(nil), "common.ConfigUpdate")
proto.RegisterMapType((map[string][]byte)(nil), "common.ConfigUpdate.IsolatedDataEntry")
proto.RegisterType((*ConfigGroup)(nil), "common.ConfigGroup")
proto.RegisterMapType((map[string]*ConfigGroup)(nil), "common.ConfigGroup.GroupsEntry")
proto.RegisterMapType((map[string]*ConfigPolicy)(nil), "common.ConfigGroup.PoliciesEntry")
proto.RegisterMapType((map[string]*ConfigValue)(nil), "common.ConfigGroup.ValuesEntry")
proto.RegisterType((*ConfigValue)(nil), "common.ConfigValue")
proto.RegisterType((*ConfigPolicy)(nil), "common.ConfigPolicy")
proto.RegisterType((*ConfigSignature)(nil), "common.ConfigSignature")
}
func init() { proto.RegisterFile("common/configtx.proto", fileDescriptor_configtx_f1e09584bdb3a224) }
var fileDescriptor_configtx_f1e09584bdb3a224 = []byte{
// 742 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x6f, 0x6f, 0xd3, 0x3e,
0x10, 0x56, 0x9b, 0xb6, 0x6b, 0xaf, 0xed, 0xd6, 0x79, 0xfd, 0xe9, 0x17, 0x22, 0x10, 0x23, 0xc0,
0xd8, 0x40, 0x4a, 0xc7, 0x78, 0xb1, 0x09, 0x69, 0x42, 0x62, 0x4c, 0xb0, 0x21, 0x4d, 0x90, 0xf2,
0x47, 0x9a, 0x90, 0x2a, 0x2f, 0xf1, 0xda, 0xb0, 0x34, 0x0e, 0x89, 0x3b, 0xe8, 0x47, 0xe2, 0x33,
0xf1, 0x0d, 0xf8, 0x14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