Back to godoc.org

Package bq

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package bq contains BigQuery tables schemas.

Index

type DelegationToken

type DelegationToken struct {
	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Kind of the token.
	TokenKind messages.Subtoken_Kind `protobuf:"varint,2,opt,name=token_kind,json=tokenKind,proto3,enum=messages.Subtoken_Kind" json:"token_kind,omitempty"`
	// Identifier of this token as generated by the token server.
	TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// Identity whose authority is delegated.
	DelegatedIdentity string `protobuf:"bytes,4,opt,name=delegated_identity,json=delegatedIdentity,proto3" json:"delegated_identity,omitempty"`
	// Who requested this token.
	RequestorIdentity string `protobuf:"bytes,5,opt,name=requestor_identity,json=requestorIdentity,proto3" json:"requestor_identity,omitempty"`
	// When the token was generated.
	IssuedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// When the token expires.
	Expiration *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Who can present this token.
	TargetAudience []string `protobuf:"bytes,8,rep,name=target_audience,json=targetAudience,proto3" json:"target_audience,omitempty"`
	// What services should accept this token
	TargetServices []string `protobuf:"bytes,9,rep,name=target_services,json=targetServices,proto3" json:"target_services,omitempty"`
	// Token validity duration (in seconds), as requested by the caller.
	RequestedValidity int64 `protobuf:"varint,10,opt,name=requested_validity,json=requestedValidity,proto3" json:"requested_validity,omitempty"`
	// An intent string provided by the caller.
	RequestedIntent string `protobuf:"bytes,11,opt,name=requested_intent,json=requestedIntent,proto3" json:"requested_intent,omitempty"`
	// Arbitrary key:value pairs embedded into the token.
	Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
	// Revision of the luci-config repo with rules.
	ConfigRev string `protobuf:"bytes,13,opt,name=config_rev,json=configRev,proto3" json:"config_rev,omitempty"`
	// Name of the rule used to authorize this call.
	ConfigRule string `protobuf:"bytes,14,opt,name=config_rule,json=configRule,proto3" json:"config_rule,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,15,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,16,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,17,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// Revision of the authorization database used to authorize this call.
	AuthDbRev            int64    `protobuf:"varint,18,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued delegation tokens.

func (*DelegationToken) Descriptor

func (*DelegationToken) Descriptor() ([]byte, []int)

func (*DelegationToken) GetAuthDbRev

func (m *DelegationToken) GetAuthDbRev() int64

func (*DelegationToken) GetConfigRev

func (m *DelegationToken) GetConfigRev() string

func (*DelegationToken) GetConfigRule

func (m *DelegationToken) GetConfigRule() string

func (*DelegationToken) GetDelegatedIdentity

func (m *DelegationToken) GetDelegatedIdentity() string

func (*DelegationToken) GetExpiration

func (m *DelegationToken) GetExpiration() *timestamp.Timestamp

func (*DelegationToken) GetFingerprint

func (m *DelegationToken) GetFingerprint() string

func (*DelegationToken) GetGaeRequestId

func (m *DelegationToken) GetGaeRequestId() string

func (*DelegationToken) GetIssuedAt

func (m *DelegationToken) GetIssuedAt() *timestamp.Timestamp

func (*DelegationToken) GetPeerIp

func (m *DelegationToken) GetPeerIp() string

func (*DelegationToken) GetRequestedIntent

func (m *DelegationToken) GetRequestedIntent() string

func (*DelegationToken) GetRequestedValidity

func (m *DelegationToken) GetRequestedValidity() int64

func (*DelegationToken) GetRequestorIdentity

func (m *DelegationToken) GetRequestorIdentity() string

func (*DelegationToken) GetServiceVersion

func (m *DelegationToken) GetServiceVersion() string

func (*DelegationToken) GetTags

func (m *DelegationToken) GetTags() []string

func (*DelegationToken) GetTargetAudience

func (m *DelegationToken) GetTargetAudience() []string

func (*DelegationToken) GetTargetServices

func (m *DelegationToken) GetTargetServices() []string

func (*DelegationToken) GetTokenId

func (m *DelegationToken) GetTokenId() string

func (*DelegationToken) GetTokenKind

func (m *DelegationToken) GetTokenKind() messages.Subtoken_Kind

func (*DelegationToken) ProtoMessage

func (*DelegationToken) ProtoMessage()

func (*DelegationToken) Reset

func (m *DelegationToken) Reset()

func (*DelegationToken) String

func (m *DelegationToken) String() string

func (*DelegationToken) XXX_DiscardUnknown

func (m *DelegationToken) XXX_DiscardUnknown()

func (*DelegationToken) XXX_Marshal

func (m *DelegationToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationToken) XXX_Merge

func (m *DelegationToken) XXX_Merge(src proto.Message)

func (*DelegationToken) XXX_Size

func (m *DelegationToken) XXX_Size() int

func (*DelegationToken) XXX_Unmarshal

func (m *DelegationToken) XXX_Unmarshal(b []byte) error

type MachineToken

type MachineToken struct {
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`

	MachineFqdn string `protobuf:"bytes,2,opt,name=machine_fqdn,json=machineFqdn,proto3" json:"machine_fqdn,omitempty"`

	TokenType api.MachineTokenType `protobuf:"varint,3,opt,name=token_type,json=tokenType,proto3,enum=tokenserver.MachineTokenType" json:"token_type,omitempty"`

	IssuedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`

	Expiration *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`

	CertSerialNumber string `protobuf:"bytes,6,opt,name=cert_serial_number,json=certSerialNumber,proto3" json:"cert_serial_number,omitempty"`

	SignatureAlgorithm v1.SignatureAlgorithm "" /* 159 byte string literal not displayed */

	CaCommonName string `protobuf:"bytes,8,opt,name=ca_common_name,json=caCommonName,proto3" json:"ca_common_name,omitempty"`

	CaConfigRev string `protobuf:"bytes,9,opt,name=ca_config_rev,json=caConfigRev,proto3" json:"ca_config_rev,omitempty"`

	PeerIp string `protobuf:"bytes,10,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`

	ServiceVersion string `protobuf:"bytes,11,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`

	GaeRequestId         string   `protobuf:"bytes,12,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued machine tokens.

func (*MachineToken) Descriptor

func (*MachineToken) Descriptor() ([]byte, []int)

func (*MachineToken) GetCaCommonName

func (m *MachineToken) GetCaCommonName() string

func (*MachineToken) GetCaConfigRev

func (m *MachineToken) GetCaConfigRev() string

func (*MachineToken) GetCertSerialNumber

func (m *MachineToken) GetCertSerialNumber() string

func (*MachineToken) GetExpiration

func (m *MachineToken) GetExpiration() *timestamp.Timestamp

func (*MachineToken) GetFingerprint

func (m *MachineToken) GetFingerprint() string

func (*MachineToken) GetGaeRequestId

func (m *MachineToken) GetGaeRequestId() string

func (*MachineToken) GetIssuedAt

func (m *MachineToken) GetIssuedAt() *timestamp.Timestamp

func (*MachineToken) GetMachineFqdn

func (m *MachineToken) GetMachineFqdn() string

func (*MachineToken) GetPeerIp

func (m *MachineToken) GetPeerIp() string

func (*MachineToken) GetServiceVersion

func (m *MachineToken) GetServiceVersion() string

func (*MachineToken) GetSignatureAlgorithm

func (m *MachineToken) GetSignatureAlgorithm() v1.SignatureAlgorithm

func (*MachineToken) GetTokenType

func (m *MachineToken) GetTokenType() api.MachineTokenType

func (*MachineToken) ProtoMessage

func (*MachineToken) ProtoMessage()

func (*MachineToken) Reset

func (m *MachineToken) Reset()

func (*MachineToken) String

func (m *MachineToken) String() string

func (*MachineToken) XXX_DiscardUnknown

func (m *MachineToken) XXX_DiscardUnknown()

func (*MachineToken) XXX_Marshal

func (m *MachineToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MachineToken) XXX_Merge

func (m *MachineToken) XXX_Merge(src proto.Message)

func (*MachineToken) XXX_Size

func (m *MachineToken) XXX_Size() int

func (*MachineToken) XXX_Unmarshal

func (m *MachineToken) XXX_Unmarshal(b []byte) error

type OAuthToken

type OAuthToken struct {
	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// First 16 bytes of SHA256 of the oauth grant, hex-encoded.
	GrantFingerprint string `protobuf:"bytes,2,opt,name=grant_fingerprint,json=grantFingerprint,proto3" json:"grant_fingerprint,omitempty"`
	// Service account email the end user wants to act as.
	ServiceAccount string `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// Requested OAuth scopes.
	OauthScopes []string `protobuf:"bytes,4,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
	// Who requested and who can use this token.
	ProxyIdentity string `protobuf:"bytes,5,opt,name=proxy_identity,json=proxyIdentity,proto3" json:"proxy_identity,omitempty"`
	// On whose behalf the token is generated.
	EndUserIdentity string `protobuf:"bytes,6,opt,name=end_user_identity,json=endUserIdentity,proto3" json:"end_user_identity,omitempty"`
	// When this request happened.
	RequestedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=requested_at,json=requestedAt,proto3" json:"requested_at,omitempty"`
	// When the token expires.
	Expiration *timestamp.Timestamp `protobuf:"bytes,8,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Arbitrary key:value pairs provided by the caller.
	AuditTags []string `protobuf:"bytes,9,rep,name=audit_tags,json=auditTags,proto3" json:"audit_tags,omitempty"`
	// Revision of the luci-config repo with rules.
	ConfigRev string `protobuf:"bytes,10,opt,name=config_rev,json=configRev,proto3" json:"config_rev,omitempty"`
	// Name of the rule used to authorize this call.
	ConfigRule string `protobuf:"bytes,11,opt,name=config_rule,json=configRule,proto3" json:"config_rule,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,12,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,13,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,14,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// Revision of the authorization database used to authorize this call.
	AuthDbRev            int64    `protobuf:"varint,15,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued OAuth tokens.

func (*OAuthToken) Descriptor

func (*OAuthToken) Descriptor() ([]byte, []int)

func (*OAuthToken) GetAuditTags

func (m *OAuthToken) GetAuditTags() []string

func (*OAuthToken) GetAuthDbRev

func (m *OAuthToken) GetAuthDbRev() int64

func (*OAuthToken) GetConfigRev

func (m *OAuthToken) GetConfigRev() string

func (*OAuthToken) GetConfigRule

func (m *OAuthToken) GetConfigRule() string

func (*OAuthToken) GetEndUserIdentity

func (m *OAuthToken) GetEndUserIdentity() string

func (*OAuthToken) GetExpiration

func (m *OAuthToken) GetExpiration() *timestamp.Timestamp

func (*OAuthToken) GetFingerprint

func (m *OAuthToken) GetFingerprint() string

func (*OAuthToken) GetGaeRequestId

func (m *OAuthToken) GetGaeRequestId() string

func (*OAuthToken) GetGrantFingerprint

func (m *OAuthToken) GetGrantFingerprint() string

func (*OAuthToken) GetOauthScopes

func (m *OAuthToken) GetOauthScopes() []string

func (*OAuthToken) GetPeerIp

func (m *OAuthToken) GetPeerIp() string

func (*OAuthToken) GetProxyIdentity

func (m *OAuthToken) GetProxyIdentity() string

func (*OAuthToken) GetRequestedAt

func (m *OAuthToken) GetRequestedAt() *timestamp.Timestamp

func (*OAuthToken) GetServiceAccount

func (m *OAuthToken) GetServiceAccount() string

func (*OAuthToken) GetServiceVersion

func (m *OAuthToken) GetServiceVersion() string

func (*OAuthToken) ProtoMessage

func (*OAuthToken) ProtoMessage()

func (*OAuthToken) Reset

func (m *OAuthToken) Reset()

func (*OAuthToken) String

func (m *OAuthToken) String() string

func (*OAuthToken) XXX_DiscardUnknown

func (m *OAuthToken) XXX_DiscardUnknown()

func (*OAuthToken) XXX_Marshal

func (m *OAuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OAuthToken) XXX_Merge

func (m *OAuthToken) XXX_Merge(src proto.Message)

func (*OAuthToken) XXX_Size

func (m *OAuthToken) XXX_Size() int

func (*OAuthToken) XXX_Unmarshal

func (m *OAuthToken) XXX_Unmarshal(b []byte) error

type OAuthTokenGrant

type OAuthTokenGrant struct {
	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Identifier of this token as generated by the token server.
	TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// Service account email the end user wants to act as.
	ServiceAccount string `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// Who requested and who can use this token.
	ProxyIdentity string `protobuf:"bytes,4,opt,name=proxy_identity,json=proxyIdentity,proto3" json:"proxy_identity,omitempty"`
	// On whose behalf the token is generated.
	EndUserIdentity string `protobuf:"bytes,5,opt,name=end_user_identity,json=endUserIdentity,proto3" json:"end_user_identity,omitempty"`
	// When the token was generated.
	IssuedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// When the token expires.
	Expiration *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Arbitrary key:value pairs provided by the caller.
	AuditTags []string `protobuf:"bytes,8,rep,name=audit_tags,json=auditTags,proto3" json:"audit_tags,omitempty"`
	// Revision of the luci-config repo with rules.
	ConfigRev string `protobuf:"bytes,9,opt,name=config_rev,json=configRev,proto3" json:"config_rev,omitempty"`
	// Name of the rule used to authorize this call.
	ConfigRule string `protobuf:"bytes,10,opt,name=config_rule,json=configRule,proto3" json:"config_rule,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,11,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,12,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,13,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// Revision of the authorization database used to authorize this call.
	AuthDbRev            int64    `protobuf:"varint,14,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued OAuth token grants.

func (*OAuthTokenGrant) Descriptor

func (*OAuthTokenGrant) Descriptor() ([]byte, []int)

func (*OAuthTokenGrant) GetAuditTags

func (m *OAuthTokenGrant) GetAuditTags() []string

func (*OAuthTokenGrant) GetAuthDbRev

func (m *OAuthTokenGrant) GetAuthDbRev() int64

func (*OAuthTokenGrant) GetConfigRev

func (m *OAuthTokenGrant) GetConfigRev() string

func (*OAuthTokenGrant) GetConfigRule

func (m *OAuthTokenGrant) GetConfigRule() string

func (*OAuthTokenGrant) GetEndUserIdentity

func (m *OAuthTokenGrant) GetEndUserIdentity() string

func (*OAuthTokenGrant) GetExpiration

func (m *OAuthTokenGrant) GetExpiration() *timestamp.Timestamp

func (*OAuthTokenGrant) GetFingerprint

func (m *OAuthTokenGrant) GetFingerprint() string

func (*OAuthTokenGrant) GetGaeRequestId

func (m *OAuthTokenGrant) GetGaeRequestId() string

func (*OAuthTokenGrant) GetIssuedAt

func (m *OAuthTokenGrant) GetIssuedAt() *timestamp.Timestamp

func (*OAuthTokenGrant) GetPeerIp

func (m *OAuthTokenGrant) GetPeerIp() string

func (*OAuthTokenGrant) GetProxyIdentity

func (m *OAuthTokenGrant) GetProxyIdentity() string

func (*OAuthTokenGrant) GetServiceAccount

func (m *OAuthTokenGrant) GetServiceAccount() string

func (*OAuthTokenGrant) GetServiceVersion

func (m *OAuthTokenGrant) GetServiceVersion() string

func (*OAuthTokenGrant) GetTokenId

func (m *OAuthTokenGrant) GetTokenId() string

func (*OAuthTokenGrant) ProtoMessage

func (*OAuthTokenGrant) ProtoMessage()

func (*OAuthTokenGrant) Reset

func (m *OAuthTokenGrant) Reset()

func (*OAuthTokenGrant) String

func (m *OAuthTokenGrant) String() string

func (*OAuthTokenGrant) XXX_DiscardUnknown

func (m *OAuthTokenGrant) XXX_DiscardUnknown()

func (*OAuthTokenGrant) XXX_Marshal

func (m *OAuthTokenGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OAuthTokenGrant) XXX_Merge

func (m *OAuthTokenGrant) XXX_Merge(src proto.Message)

func (*OAuthTokenGrant) XXX_Size

func (m *OAuthTokenGrant) XXX_Size() int

func (*OAuthTokenGrant) XXX_Unmarshal

func (m *OAuthTokenGrant) XXX_Unmarshal(b []byte) error

type ProjectToken

type ProjectToken struct {
	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Service account email the luci service wants to act as.
	ServiceAccount string `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// Requested OAuth scopes.
	OauthScopes []string `protobuf:"bytes,3,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
	// LUCI project for which token is requested.
	LuciProject string `protobuf:"bytes,4,opt,name=luci_project,json=luciProject,proto3" json:"luci_project,omitempty"`
	// Who requested and who can use this token.
	ServiceIdentity string `protobuf:"bytes,5,opt,name=service_identity,json=serviceIdentity,proto3" json:"service_identity,omitempty"`
	// When this request happened.
	RequestedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=requested_at,json=requestedAt,proto3" json:"requested_at,omitempty"`
	// When the token expires.
	Expiration *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Arbitrary key:value pairs provided by the caller.
	AuditTags []string `protobuf:"bytes,8,rep,name=audit_tags,json=auditTags,proto3" json:"audit_tags,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,9,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,10,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,11,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// Revision of the authorization database used to authorize this call.
	AuthDbRev            int64    `protobuf:"varint,12,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued Project tokens.

func (*ProjectToken) Descriptor

func (*ProjectToken) Descriptor() ([]byte, []int)

func (*ProjectToken) GetAuditTags

func (m *ProjectToken) GetAuditTags() []string

func (*ProjectToken) GetAuthDbRev

func (m *ProjectToken) GetAuthDbRev() int64

func (*ProjectToken) GetExpiration

func (m *ProjectToken) GetExpiration() *timestamp.Timestamp

func (*ProjectToken) GetFingerprint

func (m *ProjectToken) GetFingerprint() string

func (*ProjectToken) GetGaeRequestId

func (m *ProjectToken) GetGaeRequestId() string

func (*ProjectToken) GetLuciProject

func (m *ProjectToken) GetLuciProject() string

func (*ProjectToken) GetOauthScopes

func (m *ProjectToken) GetOauthScopes() []string

func (*ProjectToken) GetPeerIp

func (m *ProjectToken) GetPeerIp() string

func (*ProjectToken) GetRequestedAt

func (m *ProjectToken) GetRequestedAt() *timestamp.Timestamp

func (*ProjectToken) GetServiceAccount

func (m *ProjectToken) GetServiceAccount() string

func (*ProjectToken) GetServiceIdentity

func (m *ProjectToken) GetServiceIdentity() string

func (*ProjectToken) GetServiceVersion

func (m *ProjectToken) GetServiceVersion() string

func (*ProjectToken) ProtoMessage

func (*ProjectToken) ProtoMessage()

func (*ProjectToken) Reset

func (m *ProjectToken) Reset()

func (*ProjectToken) String

func (m *ProjectToken) String() string

func (*ProjectToken) XXX_DiscardUnknown

func (m *ProjectToken) XXX_DiscardUnknown()

func (*ProjectToken) XXX_Marshal

func (m *ProjectToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectToken) XXX_Merge

func (m *ProjectToken) XXX_Merge(src proto.Message)

func (*ProjectToken) XXX_Size

func (m *ProjectToken) XXX_Size() int

func (*ProjectToken) XXX_Unmarshal

func (m *ProjectToken) XXX_Unmarshal(b []byte) error

type ServiceAccountToken

type ServiceAccountToken struct {
	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// The kind of the token requested (OAuth2 access token or ID token).
	Kind v1.ServiceAccountTokenKind `protobuf:"varint,2,opt,name=kind,proto3,enum=tokenserver.minter.ServiceAccountTokenKind" json:"kind,omitempty"`
	// Service account email the luci service wants to act as.
	ServiceAccount string `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// LUCI realm used to authorize the call.
	Realm string `protobuf:"bytes,4,opt,name=realm,proto3" json:"realm,omitempty"`
	// Requested OAuth scopes when minting OAuth tokens.
	OauthScopes []string `protobuf:"bytes,5,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
	// Requested audience when minting ID tokens.
	IdTokenAudience string `protobuf:"bytes,6,opt,name=id_token_audience,json=idTokenAudience,proto3" json:"id_token_audience,omitempty"`
	// Identity used to authorize the call.
	RequestIdentity string `protobuf:"bytes,7,opt,name=request_identity,json=requestIdentity,proto3" json:"request_identity,omitempty"`
	// Identity of a service that made the RPC.
	PeerIdentity string `protobuf:"bytes,8,opt,name=peer_identity,json=peerIdentity,proto3" json:"peer_identity,omitempty"`
	// When this request happened.
	RequestedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=requested_at,json=requestedAt,proto3" json:"requested_at,omitempty"`
	// When the token expires.
	Expiration *timestamp.Timestamp `protobuf:"bytes,10,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Arbitrary key:value pairs provided by the caller.
	AuditTags []string `protobuf:"bytes,11,rep,name=audit_tags,json=auditTags,proto3" json:"audit_tags,omitempty"`
	// Revision of the luci-config repo with project_owned_accounts.cfg.
	ConfigRev string `protobuf:"bytes,12,opt,name=config_rev,json=configRev,proto3" json:"config_rev,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,13,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,14,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,15,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// Revision of the authorization database used to authorize this call.
	AuthDbRev            int64    `protobuf:"varint,16,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Issued service account tokens.

func (*ServiceAccountToken) Descriptor

func (*ServiceAccountToken) Descriptor() ([]byte, []int)

func (*ServiceAccountToken) GetAuditTags

func (m *ServiceAccountToken) GetAuditTags() []string

func (*ServiceAccountToken) GetAuthDbRev

func (m *ServiceAccountToken) GetAuthDbRev() int64

func (*ServiceAccountToken) GetConfigRev

func (m *ServiceAccountToken) GetConfigRev() string

func (*ServiceAccountToken) GetExpiration

func (m *ServiceAccountToken) GetExpiration() *timestamp.Timestamp

func (*ServiceAccountToken) GetFingerprint

func (m *ServiceAccountToken) GetFingerprint() string

func (*ServiceAccountToken) GetGaeRequestId

func (m *ServiceAccountToken) GetGaeRequestId() string

func (*ServiceAccountToken) GetIdTokenAudience

func (m *ServiceAccountToken) GetIdTokenAudience() string

func (*ServiceAccountToken) GetKind

func (m *ServiceAccountToken) GetKind() v1.ServiceAccountTokenKind

func (*ServiceAccountToken) GetOauthScopes

func (m *ServiceAccountToken) GetOauthScopes() []string

func (*ServiceAccountToken) GetPeerIdentity

func (m *ServiceAccountToken) GetPeerIdentity() string

func (*ServiceAccountToken) GetPeerIp

func (m *ServiceAccountToken) GetPeerIp() string

func (*ServiceAccountToken) GetRealm

func (m *ServiceAccountToken) GetRealm() string

func (*ServiceAccountToken) GetRequestIdentity

func (m *ServiceAccountToken) GetRequestIdentity() string

func (*ServiceAccountToken) GetRequestedAt

func (m *ServiceAccountToken) GetRequestedAt() *timestamp.Timestamp

func (*ServiceAccountToken) GetServiceAccount

func (m *ServiceAccountToken) GetServiceAccount() string

func (*ServiceAccountToken) GetServiceVersion

func (m *ServiceAccountToken) GetServiceVersion() string

func (*ServiceAccountToken) ProtoMessage

func (*ServiceAccountToken) ProtoMessage()

func (*ServiceAccountToken) Reset

func (m *ServiceAccountToken) Reset()

func (*ServiceAccountToken) String

func (m *ServiceAccountToken) String() string

func (*ServiceAccountToken) XXX_DiscardUnknown

func (m *ServiceAccountToken) XXX_DiscardUnknown()

func (*ServiceAccountToken) XXX_Marshal

func (m *ServiceAccountToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAccountToken) XXX_Merge

func (m *ServiceAccountToken) XXX_Merge(src proto.Message)

func (*ServiceAccountToken) XXX_Size

func (m *ServiceAccountToken) XXX_Size() int

func (*ServiceAccountToken) XXX_Unmarshal

func (m *ServiceAccountToken) XXX_Unmarshal(b []byte) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier