| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/tokenserver/api/minter/v1/token_minter.proto | 2 // source: github.com/luci/luci-go/tokenserver/api/minter/v1/token_minter.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 Package minter is a generated protocol buffer package. | 6 Package minter is a generated protocol buffer package. |
| 7 | 7 |
| 8 It is generated from these files: | 8 It is generated from these files: |
| 9 github.com/luci/luci-go/tokenserver/api/minter/v1/token_minter.proto | 9 github.com/luci/luci-go/tokenserver/api/minter/v1/token_minter.proto |
| 10 | 10 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 if m != nil { | 321 if m != nil { |
| 322 return m.Expiry | 322 return m.Expiry |
| 323 } | 323 } |
| 324 return nil | 324 return nil |
| 325 } | 325 } |
| 326 | 326 |
| 327 // MintDelegationTokenRequest is passed to MintDelegationToken. | 327 // MintDelegationTokenRequest is passed to MintDelegationToken. |
| 328 type MintDelegationTokenRequest struct { | 328 type MintDelegationTokenRequest struct { |
| 329 // Identity whose authority is delegated. | 329 // Identity whose authority is delegated. |
| 330 // | 330 // |
| 331 » // A string of the form "user:<email>". The token server will check its
ACLs | 331 » // A string of the form "user:<email>" or a special token "REQUESTOR" th
at |
| 332 » // to make sure the caller is authorized to impersonate this identity. | 332 » // means to delegate caller's own identity. The token server will check
its |
| 333 » // ACLs to make sure the caller is authorized to impersonate this identi
ty. |
| 333 // | 334 // |
| 334 // Required. | 335 // Required. |
| 335 DelegatedIdentity string `protobuf:"bytes,1,opt,name=delegated_identity,
json=delegatedIdentity" json:"delegated_identity,omitempty"` | 336 DelegatedIdentity string `protobuf:"bytes,1,opt,name=delegated_identity,
json=delegatedIdentity" json:"delegated_identity,omitempty"` |
| 336 // How long the token should be considered valid (in seconds). | 337 // How long the token should be considered valid (in seconds). |
| 337 // | 338 // |
| 338 // Default is 3600 sec. | 339 // Default is 3600 sec. |
| 339 ValidityDuration int64 `protobuf:"varint,2,opt,name=validity_duration,js
on=validityDuration" json:"validity_duration,omitempty"` | 340 ValidityDuration int64 `protobuf:"varint,2,opt,name=validity_duration,js
on=validityDuration" json:"validity_duration,omitempty"` |
| 340 // Who will be able to use the new token. | 341 // Who will be able to use the new token. |
| 341 // | 342 // |
| 342 // Each item can be an identity string (e.g. "user:<email>"), a "group:<
name>" | 343 // Each item can be an identity string (e.g. "user:<email>"), a "group:<
name>" |
| 343 » // string, or special "*" string which means "Any bearer can use the tok
en". | 344 » // string, special "*" string which means "Any bearer can use the token"
, or |
| 345 » // "REQUESTOR" string which means "Whoever is making this call can use t
he |
| 346 » // token". |
| 344 // | 347 // |
| 345 // This is semantically is a set, the order of elements doesn't matter. | 348 // This is semantically is a set, the order of elements doesn't matter. |
| 346 // | 349 // |
| 347 // Required. | 350 // Required. |
| 348 Audience []string `protobuf:"bytes,3,rep,name=audience" json:"audience,o
mitempty"` | 351 Audience []string `protobuf:"bytes,3,rep,name=audience" json:"audience,o
mitempty"` |
| 349 // What services should accept the new token. | 352 // What services should accept the new token. |
| 350 // | 353 // |
| 351 // List of LUCI services (specified as service identities, e.g. | 354 // List of LUCI services (specified as service identities, e.g. |
| 352 // "service:app-id" or as https:// root URLs e.g. "https://<host>") that | 355 // "service:app-id" or as https:// root URLs e.g. "https://<host>") that |
| 353 // should accept this token. May also contain special "*" string, which | 356 // should accept this token. May also contain special "*" string, which |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 0x67, 0x63, 0xbf, 0xff, 0xaa, 0xdf, 0xb3, 0x7c, 0x3b, 0x78, 0x35, 0xc0,
0x8e, 0xe5, 0xeb, 0x9b, | 652 0x67, 0x63, 0xbf, 0xff, 0xaa, 0xdf, 0xb3, 0x7c, 0x3b, 0x78, 0x35, 0xc0,
0x8e, 0xe5, 0xeb, 0x9b, |
| 650 0x05, 0x7d, 0x19, 0x7d, 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 0xff, 0x2b, 0xfe, 0x8f, 0xb0, 0xbe, 0x1e, 0xc8, 0xb8, 0x2d, 0x48, 0xf5,
0x8d, 0x68, 0x9b, 0x77, |
| 656 0xe6, 0x4b, 0xdd, 0x8b, 0xba, 0xb8, 0x7d, 0xdf, 0xfd, 0x17, 0x00, 0x00,
0xff, 0xff, 0x64, 0x1d, | 659 0xe6, 0x4b, 0xdd, 0x8b, 0xba, 0xb8, 0x7d, 0xdf, 0xfd, 0x17, 0x00, 0x00,
0xff, 0xff, 0x64, 0x1d, |
| 657 0xcf, 0x96, 0x08, 0x08, 0x00, 0x00, | 660 0xcf, 0x96, 0x08, 0x08, 0x00, 0x00, |
| 658 } | 661 } |
| OLD | NEW |