| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: github.com/luci/luci-go/tokenserver/api/token_file.proto |
| |
| package tokenserver |
| |
| 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 |
| |
| // TokenFile is representation of a token file on disk (serialized as JSON). |
| // |
| // The token file is consumed by whoever wishes to use machine tokens. It is |
| // intentionally made as simple as possible (e.g. uses unix timestamps instead |
| // of fancy protobuf ones). |
| type TokenFile struct { |
| // Google OAuth2 access token of a machine service account. |
| AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` |
| // OAuth2 access token type, usually "Bearer". |
| TokenType string `protobuf:"bytes,2,opt,name=token_type" json:"token_type,omitempty"` |
| // Machine token understood by LUCI backends (alternative to access_token). |
| LuciMachineToken string `protobuf:"bytes,3,opt,name=luci_machine_token" json:"luci_machine_token,omitempty"` |
| // Unix timestamp (in seconds) when this token expires. |
| // |
| // The token file is expected to be updated before the token expires, see |
| // 'next_update' for next expected update time. |
| Expiry int64 `protobuf:"varint,4,opt,name=expiry" json:"expiry,omitempty"` |
| // Unix timestamp of when this file was updated the last time. |
| LastUpdate int64 `protobuf:"varint,5,opt,name=last_update" json:"last_update,omitempty"` |
| // Unix timestamp of when this file is expected to be updated next time. |
| NextUpdate int64 `protobuf:"varint,6,opt,name=next_update" json:"next_update,omitempty"` |
| // Email of the associated service account. |
| ServiceAccountEmail string `protobuf:"bytes,7,opt,name=service_account_email" json:"service_account_email,omitempty"` |
| // Unique stable ID of the associated service account. |
| ServiceAccountUniqueId string `protobuf:"bytes,8,opt,name=service_account_unique_id" json:"service_account_unique_id,omitempty"` |
| // Any information tokend daemon wishes to associate with the token. |
| // |
| // Consumers of the token file should ignore this field. It is used |
| // exclusively by tokend daemon. |
| TokendState []byte `protobuf:"bytes,50,opt,name=tokend_state,proto3" json:"tokend_state,omitempty"` |
| } |
| |
| func (m *TokenFile) Reset() { *m = TokenFile{} } |
| func (m *TokenFile) String() string { return proto.CompactTextString(m) } |
| func (*TokenFile) ProtoMessage() {} |
| func (*TokenFile) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } |
| |
| func (m *TokenFile) GetAccessToken() string { |
| if m != nil { |
| return m.AccessToken |
| } |
| return "" |
| } |
| |
| func (m *TokenFile) GetTokenType() string { |
| if m != nil { |
| return m.TokenType |
| } |
| return "" |
| } |
| |
| func (m *TokenFile) GetLuciMachineToken() string { |
| if m != nil { |
| return m.LuciMachineToken |
| } |
| return "" |
| } |
| |
| func (m *TokenFile) GetExpiry() int64 { |
| if m != nil { |
| return m.Expiry |
| } |
| return 0 |
| } |
| |
| func (m *TokenFile) GetLastUpdate() int64 { |
| if m != nil { |
| return m.LastUpdate |
| } |
| return 0 |
| } |
| |
| func (m *TokenFile) GetNextUpdate() int64 { |
| if m != nil { |
| return m.NextUpdate |
| } |
| return 0 |
| } |
| |
| func (m *TokenFile) GetServiceAccountEmail() string { |
| if m != nil { |
| return m.ServiceAccountEmail |
| } |
| return "" |
| } |
| |
| func (m *TokenFile) GetServiceAccountUniqueId() string { |
| if m != nil { |
| return m.ServiceAccountUniqueId |
| } |
| return "" |
| } |
| |
| func (m *TokenFile) GetTokendState() []byte { |
| if m != nil { |
| return m.TokendState |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*TokenFile)(nil), "tokenserver.TokenFile") |
| } |
| |
| func init() { |
| proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/token_file.proto", fileDescriptor1) |
| } |
| |
| var fileDescriptor1 = []byte{ |
| // 265 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4e, 0xf3, 0x30, |
| 0x14, 0x85, 0x95, 0xf6, 0xff, 0x03, 0xbd, 0xed, 0x64, 0x09, 0x64, 0x16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x7b, |
| 0x49, 0x1d, 0xbf, 0x48, 0x75, 0xce, 0x87, 0xec, 0x19, 0x6e, 0x7e, 0x07, 0x41, 0xd3, 0x47, 0x40, |
| 0x41, 0x2d, 0xbf, 0x4c, 0x37, 0xff, 0x06, 0xe2, 0x1b, 0xa6, 0xc5, 0x5a, 0xe1, 0x7c, 0xac, 0x75, |
| 0x5f, 0x64, 0xe5, 0xaa, 0x39, 0xf1, 0x36, 0x79, 0xfa, 0x89, 0x87, 0xef, 0x00, 0x00, 0x00, 0xff, |
| 0xff, 0xf3, 0xf5, 0xfb, 0x8f, 0xc5, 0x01, 0x00, 0x00, |
| } |