This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
/
authz.pb.go
231 lines (203 loc) · 10.7 KB
/
authz.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: authz.proto
package authz_go_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// AuthorizationPolicy contains an authorization policy.
type AuthorizationPolicy struct {
// roles is a map of roles keyed by labels used in RoleLabels.
Roles map[string]*AuthorizationPolicy_Role `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// resource_to_role_labels specifies the authorization policy keyed by resource directory_id.
ResourceToRoleLabels map[string]*AuthorizationPolicy_RoleLabels `protobuf:"bytes,3,rep,name=resource_to_role_labels,json=resourceToRoleLabels,proto3" json:"resource_to_role_labels,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 *AuthorizationPolicy) Reset() { *m = AuthorizationPolicy{} }
func (m *AuthorizationPolicy) String() string { return proto.CompactTextString(m) }
func (*AuthorizationPolicy) ProtoMessage() {}
func (*AuthorizationPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_6b30dada73a254d2, []int{0}
}
func (m *AuthorizationPolicy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationPolicy.Unmarshal(m, b)
}
func (m *AuthorizationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationPolicy.Marshal(b, m, deterministic)
}
func (m *AuthorizationPolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationPolicy.Merge(m, src)
}
func (m *AuthorizationPolicy) XXX_Size() int {
return xxx_messageInfo_AuthorizationPolicy.Size(m)
}
func (m *AuthorizationPolicy) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationPolicy.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationPolicy proto.InternalMessageInfo
func (m *AuthorizationPolicy) GetRoles() map[string]*AuthorizationPolicy_Role {
if m != nil {
return m.Roles
}
return nil
}
func (m *AuthorizationPolicy) GetResourceToRoleLabels() map[string]*AuthorizationPolicy_RoleLabels {
if m != nil {
return m.ResourceToRoleLabels
}
return nil
}
// Resource contains the resource being accessed.
type AuthorizationPolicy_Resource struct {
// directory_id contains the Key Transparency directory of this entry.
DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizationPolicy_Resource) Reset() { *m = AuthorizationPolicy_Resource{} }
func (m *AuthorizationPolicy_Resource) String() string { return proto.CompactTextString(m) }
func (*AuthorizationPolicy_Resource) ProtoMessage() {}
func (*AuthorizationPolicy_Resource) Descriptor() ([]byte, []int) {
return fileDescriptor_6b30dada73a254d2, []int{0, 0}
}
func (m *AuthorizationPolicy_Resource) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationPolicy_Resource.Unmarshal(m, b)
}
func (m *AuthorizationPolicy_Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationPolicy_Resource.Marshal(b, m, deterministic)
}
func (m *AuthorizationPolicy_Resource) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationPolicy_Resource.Merge(m, src)
}
func (m *AuthorizationPolicy_Resource) XXX_Size() int {
return xxx_messageInfo_AuthorizationPolicy_Resource.Size(m)
}
func (m *AuthorizationPolicy_Resource) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationPolicy_Resource.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationPolicy_Resource proto.InternalMessageInfo
func (m *AuthorizationPolicy_Resource) GetDirectoryId() string {
if m != nil {
return m.DirectoryId
}
return ""
}
// Role contains a specific identity of an authorization entry.
type AuthorizationPolicy_Role struct {
// principals contains an application specific identifier for this entry.
Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizationPolicy_Role) Reset() { *m = AuthorizationPolicy_Role{} }
func (m *AuthorizationPolicy_Role) String() string { return proto.CompactTextString(m) }
func (*AuthorizationPolicy_Role) ProtoMessage() {}
func (*AuthorizationPolicy_Role) Descriptor() ([]byte, []int) {
return fileDescriptor_6b30dada73a254d2, []int{0, 1}
}
func (m *AuthorizationPolicy_Role) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationPolicy_Role.Unmarshal(m, b)
}
func (m *AuthorizationPolicy_Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationPolicy_Role.Marshal(b, m, deterministic)
}
func (m *AuthorizationPolicy_Role) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationPolicy_Role.Merge(m, src)
}
func (m *AuthorizationPolicy_Role) XXX_Size() int {
return xxx_messageInfo_AuthorizationPolicy_Role.Size(m)
}
func (m *AuthorizationPolicy_Role) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationPolicy_Role.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationPolicy_Role proto.InternalMessageInfo
func (m *AuthorizationPolicy_Role) GetPrincipals() []string {
if m != nil {
return m.Principals
}
return nil
}
// RoleLabels contains a lot of role labels identifying each role.
type AuthorizationPolicy_RoleLabels struct {
Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AuthorizationPolicy_RoleLabels) Reset() { *m = AuthorizationPolicy_RoleLabels{} }
func (m *AuthorizationPolicy_RoleLabels) String() string { return proto.CompactTextString(m) }
func (*AuthorizationPolicy_RoleLabels) ProtoMessage() {}
func (*AuthorizationPolicy_RoleLabels) Descriptor() ([]byte, []int) {
return fileDescriptor_6b30dada73a254d2, []int{0, 2}
}
func (m *AuthorizationPolicy_RoleLabels) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AuthorizationPolicy_RoleLabels.Unmarshal(m, b)
}
func (m *AuthorizationPolicy_RoleLabels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AuthorizationPolicy_RoleLabels.Marshal(b, m, deterministic)
}
func (m *AuthorizationPolicy_RoleLabels) XXX_Merge(src proto.Message) {
xxx_messageInfo_AuthorizationPolicy_RoleLabels.Merge(m, src)
}
func (m *AuthorizationPolicy_RoleLabels) XXX_Size() int {
return xxx_messageInfo_AuthorizationPolicy_RoleLabels.Size(m)
}
func (m *AuthorizationPolicy_RoleLabels) XXX_DiscardUnknown() {
xxx_messageInfo_AuthorizationPolicy_RoleLabels.DiscardUnknown(m)
}
var xxx_messageInfo_AuthorizationPolicy_RoleLabels proto.InternalMessageInfo
func (m *AuthorizationPolicy_RoleLabels) GetLabels() []string {
if m != nil {
return m.Labels
}
return nil
}
func init() {
proto.RegisterType((*AuthorizationPolicy)(nil), "google.keytransparency.impl.AuthorizationPolicy")
proto.RegisterMapType((map[string]*AuthorizationPolicy_RoleLabels)(nil), "google.keytransparency.impl.AuthorizationPolicy.ResourceToRoleLabelsEntry")
proto.RegisterMapType((map[string]*AuthorizationPolicy_Role)(nil), "google.keytransparency.impl.AuthorizationPolicy.RolesEntry")
proto.RegisterType((*AuthorizationPolicy_Resource)(nil), "google.keytransparency.impl.AuthorizationPolicy.Resource")
proto.RegisterType((*AuthorizationPolicy_Role)(nil), "google.keytransparency.impl.AuthorizationPolicy.Role")
proto.RegisterType((*AuthorizationPolicy_RoleLabels)(nil), "google.keytransparency.impl.AuthorizationPolicy.RoleLabels")
}
func init() { proto.RegisterFile("authz.proto", fileDescriptor_6b30dada73a254d2) }
var fileDescriptor_6b30dada73a254d2 = []byte{
// 358 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x4b, 0xe3, 0x40,
0x14, 0xc7, 0x49, 0xd2, 0x96, 0xf6, 0x65, 0x0f, 0x65, 0x76, 0xd9, 0xcd, 0x66, 0x61, 0xc9, 0x2e,
0xcb, 0x92, 0x53, 0x02, 0x2d, 0x82, 0xe8, 0x49, 0xa5, 0x07, 0xab, 0x07, 0x1b, 0x3c, 0x79, 0x09,
0xd3, 0x74, 0x48, 0x87, 0x4e, 0xf3, 0xc2, 0x64, 0x22, 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