Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Side by Side Diff: tokenserver/api/admin/v1/config.pb.go

Issue 2785973002: token-server: Add protos for new API for generating service account tokens. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Code generated by protoc-gen-go. 1 // Code generated by protoc-gen-go.
2 // source: github.com/luci/luci-go/tokenserver/api/admin/v1/config.proto 2 // source: github.com/luci/luci-go/tokenserver/api/admin/v1/config.proto
3 // DO NOT EDIT! 3 // DO NOT EDIT!
4 4
5 package admin 5 package admin
6 6
7 import proto "github.com/golang/protobuf/proto" 7 import proto "github.com/golang/protobuf/proto"
8 import fmt "fmt" 8 import fmt "fmt"
9 import math "math" 9 import math "math"
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return nil 283 return nil
284 } 284 }
285 285
286 func (m *DelegationRule) GetMaxValidityDuration() int64 { 286 func (m *DelegationRule) GetMaxValidityDuration() int64 {
287 if m != nil { 287 if m != nil {
288 return m.MaxValidityDuration 288 return m.MaxValidityDuration
289 } 289 }
290 return 0 290 return 0
291 } 291 }
292 292
293 // ServiceAccountsPermissions is read from service_accounts.cfg in luci-config.
294 type ServiceAccountsPermissions struct {
295 // Rules specify how MintOAuthTokenViaGrant can be used.
296 //
297 // Rules are evaluated independently. One and only one rule should match the
298 // request to allow the operation. If none rules or more than one rule m atch,
299 // the request will be denied.
300 //
301 // See ServiceAccountRule comments for more details.
302 Rules []*ServiceAccountRule `protobuf:"bytes,1,rep,name=rules" json:"rul es,omitempty"`
303 }
304
305 func (m *ServiceAccountsPermissions) Reset() { *m = ServiceAc countsPermissions{} }
306 func (m *ServiceAccountsPermissions) String() string { return proto.C ompactTextString(m) }
307 func (*ServiceAccountsPermissions) ProtoMessage() {}
308 func (*ServiceAccountsPermissions) Descriptor() ([]byte, []int) { return fileDes criptor2, []int{5} }
309
310 func (m *ServiceAccountsPermissions) GetRules() []*ServiceAccountRule {
311 if m != nil {
312 return m.Rules
313 }
314 return nil
315 }
316
317 // ServiceAccountRule describes a single allowed case of using service accounts.
318 //
319 // TODO(vadimsh): Implement.
320 type ServiceAccountRule struct {
321 // A descriptive name of this rule, for the audit log.
322 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
323 // Email of developers that added this rule, to know who to contact.
324 Owner []string `protobuf:"bytes,2,rep,name=owner" json:"owner,omitempty" `
325 }
326
327 func (m *ServiceAccountRule) Reset() { *m = ServiceAccountRul e{} }
328 func (m *ServiceAccountRule) String() string { return proto.CompactTe xtString(m) }
329 func (*ServiceAccountRule) ProtoMessage() {}
330 func (*ServiceAccountRule) Descriptor() ([]byte, []int) { return fileDescriptor2 , []int{6} }
331
332 func (m *ServiceAccountRule) GetName() string {
333 if m != nil {
334 return m.Name
335 }
336 return ""
337 }
338
339 func (m *ServiceAccountRule) GetOwner() []string {
340 if m != nil {
341 return m.Owner
342 }
343 return nil
344 }
345
293 func init() { 346 func init() {
294 proto.RegisterType((*TokenServerConfig)(nil), "tokenserver.admin.TokenSe rverConfig") 347 proto.RegisterType((*TokenServerConfig)(nil), "tokenserver.admin.TokenSe rverConfig")
295 proto.RegisterType((*CertificateAuthorityConfig)(nil), "tokenserver.admi n.CertificateAuthorityConfig") 348 proto.RegisterType((*CertificateAuthorityConfig)(nil), "tokenserver.admi n.CertificateAuthorityConfig")
296 proto.RegisterType((*DomainConfig)(nil), "tokenserver.admin.DomainConfig ") 349 proto.RegisterType((*DomainConfig)(nil), "tokenserver.admin.DomainConfig ")
297 proto.RegisterType((*DelegationPermissions)(nil), "tokenserver.admin.Del egationPermissions") 350 proto.RegisterType((*DelegationPermissions)(nil), "tokenserver.admin.Del egationPermissions")
298 proto.RegisterType((*DelegationRule)(nil), "tokenserver.admin.Delegation Rule") 351 proto.RegisterType((*DelegationRule)(nil), "tokenserver.admin.Delegation Rule")
352 proto.RegisterType((*ServiceAccountsPermissions)(nil), "tokenserver.admi n.ServiceAccountsPermissions")
353 proto.RegisterType((*ServiceAccountRule)(nil), "tokenserver.admin.Servic eAccountRule")
299 } 354 }
300 355
301 func init() { 356 func init() {
302 proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/admin/v1/con fig.proto", fileDescriptor2) 357 proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/admin/v1/con fig.proto", fileDescriptor2)
303 } 358 }
304 359
305 var fileDescriptor2 = []byte{ 360 var fileDescriptor2 = []byte{
306 » // 539 bytes of a gzipped FileDescriptorProto 361 » // 574 bytes of a gzipped FileDescriptorProto
307 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x5f, 0x6f, 0xd3, 0x3c, 362 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5f, 0x4b, 0x1b, 0x4d,
308 » 0x18, 0xc5, 0x95, 0x3f, 0xcd, 0x52, 0xbf, 0xdb, 0xde, 0xce, 0x74, 0xc3, 0x02, 0x24, 0x4a, 0x25, 363 » 0x14, 0xc6, 0x49, 0xb2, 0x89, 0x9b, 0x79, 0xd5, 0x37, 0x4e, 0xa3, 0x1d, 0x6c, 0xa1, 0x69, 0x40,
309 » 0xa4, 0x72, 0xb1, 0x46, 0x0c, 0x24, 0xae, 0xb8, 0x98, 0xd6, 0x9b, 0x55, 0x48, 0x4c, 0xd9, 0xe0, 364 » 0x48, 0x2f, 0x4c, 0xa8, 0x2d, 0xf4, 0xa2, 0xb4, 0x20, 0xe6, 0xc6, 0x50, 0xa8, 0xac, 0xb6, 0xd0,
310 » 0xd6, 0x72, 0x9d, 0xa7, 0xad, 0x35, 0xc7, 0xee, 0x1c, 0xbb, 0xdd, 0xbe, 0x07, 0x9f, 0x90, 0x4f, 365 » 0xab, 0x61, 0x9c, 0x3d, 0x26, 0x83, 0xb3, 0x33, 0x71, 0xfe, 0x18, 0xfd, 0x1e, 0xfd, 0x84, 0xfd,
311 » 0x82, 0xe2, 0x64, 0x74, 0x88, 0x72, 0x13, 0xc5, 0xe7, 0x77, 0x9e, 0xc7, 0x3a, 0x39, 0x0a, 0xfa, 366 » 0x24, 0x65, 0x67, 0xc7, 0x9a, 0x60, 0x0a, 0xbd, 0x09, 0x39, 0xcf, 0xef, 0x39, 0x67, 0x78, 0xce,
312 » 0xbc, 0x10, 0x76, 0xe9, 0x66, 0x63, 0xae, 0xcb, 0x4c, 0x3a, 0x2e, 0xfc, 0xe3, 0x74, 0xa1, 0x33, 367 » 0x61, 0xd1, 0xa7, 0xa9, 0x70, 0x33, 0x7f, 0x39, 0xe4, 0xba, 0x18, 0x49, 0xcf, 0x45, 0xf8, 0x39,
313 » 0xab, 0x6f, 0x41, 0x55, 0x60, 0xd6, 0x60, 0x32, 0xb6, 0x12, 0x19, 0x2b, 0x4a, 0xa1, 0xb2, 0xf5, 368 » 0x9c, 0xea, 0x91, 0xd3, 0xd7, 0xa0, 0x2c, 0x98, 0x5b, 0x30, 0x23, 0x36, 0x17, 0x23, 0x96, 0x17,
314 » 0xfb, 0x8c, 0x6b, 0x35, 0x17, 0x8b, 0xf1, 0xca, 0x68, 0xab, 0xf1, 0xd1, 0x13, 0xdb, 0xd8, 0x5b, 369 » 0x42, 0x8d, 0x6e, 0xdf, 0x8e, 0xb8, 0x56, 0x57, 0x62, 0x3a, 0x9c, 0x1b, 0xed, 0x34, 0xde, 0x59,
315 » 0x86, 0x1b, 0x74, 0x74, 0x53, 0x8b, 0xd7, 0x5e, 0xbc, 0xf0, 0x6e, 0x3c, 0x43, 0xc7, 0x1c, 0x8c, 370 » 0xb2, 0x0d, 0x83, 0xa5, 0xbf, 0x40, 0x3b, 0x17, 0xa5, 0x78, 0x1e, 0xc4, 0x93, 0xe0, 0xc6, 0x97,
316 » 0x15, 0x73, 0xc1, 0x99, 0x05, 0xca, 0x9c, 0x5d, 0x6a, 0x23, 0xec, 0x03, 0x09, 0x06, 0xd1, 0xe8, 371 » 0x68, 0x97, 0x83, 0x71, 0xe2, 0x4a, 0x70, 0xe6, 0x80, 0x32, 0xef, 0x66, 0xda, 0x08, 0x77, 0x4f,
317 » 0xbf, 0xb3, 0xd3, 0xf1, 0x5f, 0x7b, 0xc6, 0x17, 0x5b, 0xff, 0xf9, 0xa3, 0xbd, 0xd9, 0x96, 0xf7, 372 » 0x6a, 0xbd, 0xc6, 0xe0, 0xbf, 0xa3, 0xc3, 0xe1, 0x93, 0x39, 0xc3, 0x93, 0x47, 0xff, 0xf1, 0x83,
318 » 0xf9, 0x0e, 0x36, 0xfc, 0x19, 0xa0, 0x17, 0xff, 0x1e, 0xc2, 0x2f, 0x51, 0xd7, 0x29, 0x71, 0xe7, 373 » 0xbd, 0x9a, 0x96, 0x75, 0xf9, 0x1a, 0xd6, 0xff, 0x55, 0x43, 0xfb, 0x7f, 0x6f, 0xc2, 0x2f, 0x50,
319 » 0x80, 0x8a, 0x82, 0x24, 0x83, 0x60, 0x14, 0xe5, 0x69, 0x23, 0x5c, 0x16, 0xf8, 0x10, 0x85, 0x5c, 374 » 0xdb, 0x2b, 0x71, 0xe3, 0x81, 0x8a, 0x9c, 0xb4, 0x7a, 0xb5, 0x41, 0x23, 0x4b, 0x2b, 0xe1, 0x34,
320 » 0x91, 0x60, 0x10, 0x8c, 0xba, 0x79, 0xc8, 0x55, 0x6d, 0xae, 0xef, 0xa0, 0x2b, 0x66, 0x97, 0x24, 375 » 0xc7, 0xdb, 0xa8, 0xce, 0x15, 0xa9, 0xf5, 0x6a, 0x83, 0x76, 0x56, 0xe7, 0xaa, 0x34, 0x97, 0x6f,
321 » 0xf4, 0x72, 0x5a, 0x0b, 0x57, 0xcc, 0x2e, 0xf1, 0x73, 0xb4, 0xc7, 0x8d, 0xa4, 0xce, 0x48, 0x12, 376 » 0xd0, 0x39, 0x73, 0x33, 0x52, 0x0f, 0x72, 0x5a, 0x0a, 0x67, 0xcc, 0xcd, 0xf0, 0x73, 0xb4, 0xc1,
322 » 0x79, 0x94, 0x70, 0x23, 0xbf, 0x19, 0xe9, 0xaf, 0xa8, 0x80, 0xea, 0x3a, 0x1e, 0x89, 0x07, 0xc1, 377 » 0x8d, 0xa4, 0xde, 0x48, 0xd2, 0x08, 0xa8, 0xc5, 0x8d, 0xfc, 0x66, 0x64, 0x78, 0xc2, 0x02, 0xd5,
323 » 0x28, 0xcd, 0x53, 0x57, 0xc1, 0xd7, 0xfa, 0x8c, 0x27, 0xe8, 0xe0, 0x56, 0xe9, 0x8d, 0xa2, 0x85, 378 » 0x65, 0x3c, 0x92, 0xf4, 0x6a, 0x83, 0x34, 0x4b, 0xbd, 0x85, 0xaf, 0x65, 0x8d, 0xc7, 0x68, 0xeb,
324 » 0x2e, 0x99, 0x50, 0x15, 0xe9, 0xf8, 0xe8, 0xaf, 0x77, 0x44, 0x9f, 0x78, 0x47, 0x1b, 0x76, 0xdf, 379 » 0x5a, 0xe9, 0x85, 0xa2, 0xb9, 0x2e, 0x98, 0x50, 0x96, 0x34, 0x43, 0xf4, 0x57, 0x6b, 0xa2, 0x8f,
325 » 0x4f, 0x35, 0x52, 0x35, 0xb4, 0x68, 0xff, 0x29, 0xc5, 0x27, 0x28, 0x69, 0xf6, 0xf9, 0x2f, 0xd9, 380 » 0x83, 0x23, 0x86, 0xdd, 0x0c, 0x5d, 0x95, 0x64, 0xfb, 0x0e, 0x6d, 0x2e, 0x53, 0xbc, 0x87, 0x5a,
326 » 0xcd, 0xdb, 0x13, 0xfe, 0x88, 0x4e, 0x4a, 0xc6, 0x97, 0x42, 0x01, 0xf5, 0xfb, 0xa9, 0x14, 0x73, 381 » 0xd5, 0xbc, 0xb0, 0xc9, 0x76, 0x16, 0x2b, 0xfc, 0x1e, 0xed, 0x15, 0x8c, 0xcf, 0x84, 0x02, 0x1a,
327 » 0xb0, 0xa2, 0x04, 0xd2, 0xf1, 0xd1, 0xfb, 0x2d, 0xf5, 0x55, 0x7d, 0x69, 0xd9, 0x34, 0x4e, 0xc3, 382 » 0xe6, 0x53, 0x29, 0xae, 0xc0, 0x89, 0x02, 0x48, 0x33, 0x44, 0xef, 0x46, 0x1a, 0x4e, 0xf5, 0x25,
328 » 0x5e, 0x34, 0x8d, 0xd3, 0xa8, 0x17, 0x4f, 0xe3, 0x34, 0xee, 0x75, 0xa6, 0x71, 0x9a, 0xf4, 0xf6, 383 » 0xb2, 0x49, 0x92, 0xd6, 0x3b, 0x8d, 0x49, 0x92, 0x36, 0x3a, 0xc9, 0x24, 0x49, 0x93, 0x4e, 0x73,
329 » 0x86, 0x57, 0xe8, 0x78, 0x02, 0x12, 0x16, 0xcc, 0x0a, 0xad, 0xae, 0xc0, 0x94, 0xa2, 0xaa, 0x84, 384 » 0x92, 0xa4, 0xad, 0xce, 0x46, 0xff, 0x0c, 0xed, 0x8e, 0x41, 0xc2, 0x94, 0x39, 0xa1, 0xd5, 0x19,
330 » 0x56, 0x15, 0xfe, 0x84, 0x3a, 0xc6, 0x49, 0xa8, 0xda, 0x1e, 0xdf, 0xec, 0x0a, 0xf3, 0x7b, 0x30, 385 » 0x98, 0x42, 0x58, 0x2b, 0xb4, 0xb2, 0xf8, 0x03, 0x6a, 0x1a, 0x2f, 0xc1, 0xc6, 0x3b, 0xbe, 0x5e,
331 » 0x77, 0x12, 0xf2, 0xc6, 0x3f, 0xfc, 0x11, 0xa2, 0xc3, 0x3f, 0x09, 0xc6, 0x28, 0x56, 0xac, 0x84, 386 » 0x17, 0xe6, 0x4f, 0x63, 0xe6, 0x25, 0x64, 0x95, 0xbf, 0xff, 0xb3, 0x8e, 0xb6, 0x57, 0x09, 0xc6,
332 » 0xb6, 0x05, 0xff, 0x8e, 0xfb, 0xa8, 0xa3, 0x37, 0x0a, 0x0c, 0x09, 0x7d, 0xba, 0xe6, 0x80, 0x5f, 387 » 0x28, 0x51, 0xac, 0x80, 0x78, 0x85, 0xf0, 0x1f, 0x77, 0x51, 0x53, 0x2f, 0x14, 0x18, 0x52, 0x0f,
333 » 0xa1, 0xae, 0x81, 0x3b, 0x07, 0x95, 0xd5, 0x86, 0x44, 0x9e, 0x6c, 0x85, 0x3a, 0x3a, 0x93, 0x52, 388 » 0xe9, 0xaa, 0x02, 0xbf, 0x44, 0x6d, 0x03, 0x37, 0x1e, 0xac, 0xd3, 0x86, 0x34, 0x02, 0x79, 0x14,
334 » 0x6f, 0xa0, 0xa0, 0x56, 0x53, 0x51, 0xae, 0xc0, 0x54, 0x5a, 0x31, 0x0b, 0x24, 0xf6, 0xd6, 0x7e, 389 » 0xca, 0xe8, 0x4c, 0x4a, 0xbd, 0x80, 0x9c, 0x3a, 0x4d, 0x45, 0x31, 0x07, 0x63, 0xb5, 0x62, 0x0e,
335 » 0x4b, 0x6f, 0xf4, 0xe5, 0x96, 0xe1, 0x77, 0xa8, 0xf7, 0x38, 0xc5, 0x5c, 0x21, 0x40, 0x71, 0xf0, 390 » 0x48, 0x12, 0xac, 0xdd, 0x48, 0x2f, 0xf4, 0xe9, 0x23, 0xc3, 0x6f, 0x50, 0xe7, 0xa1, 0x8b, 0xf9,
336 » 0x0d, 0x75, 0xf3, 0xff, 0x5b, 0xfd, 0xbc, 0x95, 0xf1, 0x5b, 0x74, 0x68, 0x99, 0x59, 0x80, 0xa5, 391 » 0x5c, 0x80, 0xe2, 0x10, 0x2e, 0xd4, 0xce, 0xfe, 0x8f, 0xfa, 0x71, 0x94, 0xf1, 0x01, 0xda, 0x76,
337 » 0x75, 0x50, 0xc1, 0x81, 0x24, 0xde, 0x78, 0xd0, 0xa8, 0xd7, 0x8d, 0x88, 0xcf, 0xd0, 0x71, 0xc9, 392 » 0xcc, 0x4c, 0xc1, 0xd1, 0x32, 0xa8, 0xe0, 0x40, 0x5a, 0xc1, 0xb8, 0x55, 0xa9, 0xe7, 0x95, 0x88,
338 » 0xee, 0xe9, 0x9a, 0x49, 0x51, 0x08, 0xfb, 0x40, 0x0b, 0x67, 0x7c, 0x58, 0xb2, 0xe7, 0x1b, 0x78, 393 » 0x8f, 0xd0, 0x6e, 0xc1, 0xee, 0xe8, 0x2d, 0x93, 0x22, 0x17, 0xee, 0x9e, 0xe6, 0xde, 0x84, 0xb0,
339 » 0x56, 0xb2, 0xfb, 0xef, 0x2d, 0x9b, 0xb4, 0x68, 0x96, 0xf8, 0xdf, 0xea, 0xc3, 0xaf, 0x00, 0x00, 394 » 0x64, 0x23, 0x5c, 0xe0, 0x59, 0xc1, 0xee, 0xbe, 0x47, 0x36, 0x8e, 0xa8, 0xff, 0x03, 0xed, 0xc7,
340 » 0x00, 0xff, 0xff, 0x68, 0x96, 0x3b, 0x9b, 0x97, 0x03, 0x00, 0x00, 395 » 0xf6, 0x63, 0xce, 0xb5, 0x57, 0xce, 0x2e, 0x6f, 0xfb, 0xe3, 0xea, 0xb6, 0x0f, 0xd6, 0x6c, 0x7b,
396 » 0xb5, 0x7b, 0x79, 0xe3, 0x9f, 0x11, 0x7e, 0x0a, 0xff, 0x7d, 0xe9, 0x97, 0xad, 0xf0, 0xc5, 0xbf,
397 » 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x79, 0xa6, 0xb9, 0x32, 0x04, 0x00, 0x00,
341 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698