bq

package
v0.0.0-...-d3da680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 13

Documentation

Overview

Package bq contains BigQuery tables schemas.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_tokenserver_api_bq_bq_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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 *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// When the token expires.
	Expiration *timestamppb.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"`
	// contains filtered or unexported fields
}

Issued delegation tokens.

func (*DelegationToken) Descriptor deprecated

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

Deprecated: Use DelegationToken.ProtoReflect.Descriptor instead.

func (*DelegationToken) GetAuthDbRev

func (x *DelegationToken) GetAuthDbRev() int64

func (*DelegationToken) GetConfigRev

func (x *DelegationToken) GetConfigRev() string

func (*DelegationToken) GetConfigRule

func (x *DelegationToken) GetConfigRule() string

func (*DelegationToken) GetDelegatedIdentity

func (x *DelegationToken) GetDelegatedIdentity() string

func (*DelegationToken) GetExpiration

func (x *DelegationToken) GetExpiration() *timestamppb.Timestamp

func (*DelegationToken) GetFingerprint

func (x *DelegationToken) GetFingerprint() string

func (*DelegationToken) GetGaeRequestId

func (x *DelegationToken) GetGaeRequestId() string

func (*DelegationToken) GetIssuedAt

func (x *DelegationToken) GetIssuedAt() *timestamppb.Timestamp

func (*DelegationToken) GetPeerIp

func (x *DelegationToken) GetPeerIp() string

func (*DelegationToken) GetRequestedIntent

func (x *DelegationToken) GetRequestedIntent() string

func (*DelegationToken) GetRequestedValidity

func (x *DelegationToken) GetRequestedValidity() int64

func (*DelegationToken) GetRequestorIdentity

func (x *DelegationToken) GetRequestorIdentity() string

func (*DelegationToken) GetServiceVersion

func (x *DelegationToken) GetServiceVersion() string

func (*DelegationToken) GetTags

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

func (*DelegationToken) GetTargetAudience

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

func (*DelegationToken) GetTargetServices

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

func (*DelegationToken) GetTokenId

func (x *DelegationToken) GetTokenId() string

func (*DelegationToken) GetTokenKind

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

func (*DelegationToken) ProtoMessage

func (*DelegationToken) ProtoMessage()

func (*DelegationToken) ProtoReflect

func (x *DelegationToken) ProtoReflect() protoreflect.Message

func (*DelegationToken) Reset

func (x *DelegationToken) Reset()

func (*DelegationToken) String

func (x *DelegationToken) String() string

type MachineToken

type MachineToken struct {

	// First 16 bytes of SHA256 of the token body, hex-encoded.
	Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Machine domain name encoded in the token.
	MachineFqdn string `protobuf:"bytes,2,opt,name=machine_fqdn,json=machineFqdn,proto3" json:"machine_fqdn,omitempty"`
	// Type of the machine token.
	TokenType api.MachineTokenType `protobuf:"varint,3,opt,name=token_type,json=tokenType,proto3,enum=tokenserver.MachineTokenType" json:"token_type,omitempty"`
	// When the token was generated.
	IssuedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	// When the token expires.
	Expiration *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Serial number of the peer certificate.
	CertSerialNumber string `protobuf:"bytes,6,opt,name=cert_serial_number,json=certSerialNumber,proto3" json:"cert_serial_number,omitempty"`
	// Type of the signature used to proof possession of the private key.
	SignatureAlgorithm v1.SignatureAlgorithm `` /* 159-byte string literal not displayed */
	// Common Name of a CA that signed the peer certificate.
	CaCommonName string `protobuf:"bytes,8,opt,name=ca_common_name,json=caCommonName,proto3" json:"ca_common_name,omitempty"`
	// Revision of the luci-config repo that contains the CA.
	CaConfigRev string `protobuf:"bytes,9,opt,name=ca_config_rev,json=caConfigRev,proto3" json:"ca_config_rev,omitempty"`
	// IP address of the caller.
	PeerIp string `protobuf:"bytes,10,opt,name=peer_ip,json=peerIp,proto3" json:"peer_ip,omitempty"`
	// Identifier of the token server GAE app and version.
	ServiceVersion string `protobuf:"bytes,11,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"`
	// ID of the GAE request that handled the call.
	GaeRequestId string `protobuf:"bytes,12,opt,name=gae_request_id,json=gaeRequestId,proto3" json:"gae_request_id,omitempty"`
	// contains filtered or unexported fields
}

Issued machine tokens.

func (*MachineToken) Descriptor deprecated

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

Deprecated: Use MachineToken.ProtoReflect.Descriptor instead.

func (*MachineToken) GetCaCommonName

func (x *MachineToken) GetCaCommonName() string

func (*MachineToken) GetCaConfigRev

func (x *MachineToken) GetCaConfigRev() string

func (*MachineToken) GetCertSerialNumber

func (x *MachineToken) GetCertSerialNumber() string

func (*MachineToken) GetExpiration

func (x *MachineToken) GetExpiration() *timestamppb.Timestamp

func (*MachineToken) GetFingerprint

func (x *MachineToken) GetFingerprint() string

func (*MachineToken) GetGaeRequestId

func (x *MachineToken) GetGaeRequestId() string

func (*MachineToken) GetIssuedAt

func (x *MachineToken) GetIssuedAt() *timestamppb.Timestamp

func (*MachineToken) GetMachineFqdn

func (x *MachineToken) GetMachineFqdn() string

func (*MachineToken) GetPeerIp

func (x *MachineToken) GetPeerIp() string

func (*MachineToken) GetServiceVersion

func (x *MachineToken) GetServiceVersion() string

func (*MachineToken) GetSignatureAlgorithm

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

func (*MachineToken) GetTokenType

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

func (*MachineToken) ProtoMessage

func (*MachineToken) ProtoMessage()

func (*MachineToken) ProtoReflect

func (x *MachineToken) ProtoReflect() protoreflect.Message

func (*MachineToken) Reset

func (x *MachineToken) Reset()

func (*MachineToken) String

func (x *MachineToken) String() string

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 *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=requested_at,json=requestedAt,proto3" json:"requested_at,omitempty"`
	// When the token expires.
	Expiration *timestamppb.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"`
	// contains filtered or unexported fields
}

Issued Project tokens.

func (*ProjectToken) Descriptor deprecated

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

Deprecated: Use ProjectToken.ProtoReflect.Descriptor instead.

func (*ProjectToken) GetAuditTags

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

func (*ProjectToken) GetAuthDbRev

func (x *ProjectToken) GetAuthDbRev() int64

func (*ProjectToken) GetExpiration

func (x *ProjectToken) GetExpiration() *timestamppb.Timestamp

func (*ProjectToken) GetFingerprint

func (x *ProjectToken) GetFingerprint() string

func (*ProjectToken) GetGaeRequestId

func (x *ProjectToken) GetGaeRequestId() string

func (*ProjectToken) GetLuciProject

func (x *ProjectToken) GetLuciProject() string

func (*ProjectToken) GetOauthScopes

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

func (*ProjectToken) GetPeerIp

func (x *ProjectToken) GetPeerIp() string

func (*ProjectToken) GetRequestedAt

func (x *ProjectToken) GetRequestedAt() *timestamppb.Timestamp

func (*ProjectToken) GetServiceAccount

func (x *ProjectToken) GetServiceAccount() string

func (*ProjectToken) GetServiceIdentity

func (x *ProjectToken) GetServiceIdentity() string

func (*ProjectToken) GetServiceVersion

func (x *ProjectToken) GetServiceVersion() string

func (*ProjectToken) ProtoMessage

func (*ProjectToken) ProtoMessage()

func (*ProjectToken) ProtoReflect

func (x *ProjectToken) ProtoReflect() protoreflect.Message

func (*ProjectToken) Reset

func (x *ProjectToken) Reset()

func (*ProjectToken) String

func (x *ProjectToken) String() string

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 *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=requested_at,json=requestedAt,proto3" json:"requested_at,omitempty"`
	// When the token expires.
	Expiration *timestamppb.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"`
	// contains filtered or unexported fields
}

Issued service account tokens.

func (*ServiceAccountToken) Descriptor deprecated

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

Deprecated: Use ServiceAccountToken.ProtoReflect.Descriptor instead.

func (*ServiceAccountToken) GetAuditTags

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

func (*ServiceAccountToken) GetAuthDbRev

func (x *ServiceAccountToken) GetAuthDbRev() int64

func (*ServiceAccountToken) GetConfigRev

func (x *ServiceAccountToken) GetConfigRev() string

func (*ServiceAccountToken) GetExpiration

func (x *ServiceAccountToken) GetExpiration() *timestamppb.Timestamp

func (*ServiceAccountToken) GetFingerprint

func (x *ServiceAccountToken) GetFingerprint() string

func (*ServiceAccountToken) GetGaeRequestId

func (x *ServiceAccountToken) GetGaeRequestId() string

func (*ServiceAccountToken) GetIdTokenAudience

func (x *ServiceAccountToken) GetIdTokenAudience() string

func (*ServiceAccountToken) GetKind

func (*ServiceAccountToken) GetOauthScopes

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

func (*ServiceAccountToken) GetPeerIdentity

func (x *ServiceAccountToken) GetPeerIdentity() string

func (*ServiceAccountToken) GetPeerIp

func (x *ServiceAccountToken) GetPeerIp() string

func (*ServiceAccountToken) GetRealm

func (x *ServiceAccountToken) GetRealm() string

func (*ServiceAccountToken) GetRequestIdentity

func (x *ServiceAccountToken) GetRequestIdentity() string

func (*ServiceAccountToken) GetRequestedAt

func (x *ServiceAccountToken) GetRequestedAt() *timestamppb.Timestamp

func (*ServiceAccountToken) GetServiceAccount

func (x *ServiceAccountToken) GetServiceAccount() string

func (*ServiceAccountToken) GetServiceVersion

func (x *ServiceAccountToken) GetServiceVersion() string

func (*ServiceAccountToken) ProtoMessage

func (*ServiceAccountToken) ProtoMessage()

func (*ServiceAccountToken) ProtoReflect

func (x *ServiceAccountToken) ProtoReflect() protoreflect.Message

func (*ServiceAccountToken) Reset

func (x *ServiceAccountToken) Reset()

func (*ServiceAccountToken) String

func (x *ServiceAccountToken) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL