forked from hyperledger/fabric
/
configuration.pb.go
126 lines (107 loc) · 5.19 KB
/
configuration.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/configuration.proto
package peer
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
// AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
type AnchorPeers struct {
AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers" json:"anchor_peers,omitempty"`
}
func (m *AnchorPeers) Reset() { *m = AnchorPeers{} }
func (m *AnchorPeers) String() string { return proto.CompactTextString(m) }
func (*AnchorPeers) ProtoMessage() {}
func (*AnchorPeers) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer {
if m != nil {
return m.AnchorPeers
}
return nil
}
// AnchorPeer message structure which provides information about anchor peer, it includes host name,
// port number and peer certificate.
type AnchorPeer struct {
// DNS host name of the anchor peer
Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
// The port number
Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
}
func (m *AnchorPeer) Reset() { *m = AnchorPeer{} }
func (m *AnchorPeer) String() string { return proto.CompactTextString(m) }
func (*AnchorPeer) ProtoMessage() {}
func (*AnchorPeer) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *AnchorPeer) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func (m *AnchorPeer) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
// 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 fileDescriptor4, []int{2} }
func (m *APIResource) GetPolicyRef() string {
if m != nil {
return m.PolicyRef
}
return ""
}
// ACLs provides mappings for resources in a channel. APIResource encpasulates
// reference to a policy used to determine ACL for the resource
type ACLs struct {
Acls map[string]*APIResource `protobuf:"bytes,1,rep,name=acls" json:"acls,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *ACLs) Reset() { *m = ACLs{} }
func (m *ACLs) String() string { return proto.CompactTextString(m) }
func (*ACLs) ProtoMessage() {}
func (*ACLs) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
func (m *ACLs) GetAcls() map[string]*APIResource {
if m != nil {
return m.Acls
}
return nil
}
func init() {
proto.RegisterType((*AnchorPeers)(nil), "protos.AnchorPeers")
proto.RegisterType((*AnchorPeer)(nil), "protos.AnchorPeer")
proto.RegisterType((*APIResource)(nil), "protos.APIResource")
proto.RegisterType((*ACLs)(nil), "protos.ACLs")
}
func init() { proto.RegisterFile("peer/configuration.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 295 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xdf, 0x4b, 0xfb, 0x30,
0x14, 0xc5, 0xe9, 0x7e, 0x7c, 0x61, 0xb7, 0xdf, 0x07, 0x89, 0x20, 0x45, 0x10, 0x46, 0x9f, 0x36,
0x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