Documentation ¶
Overview ¶
Package googleclientauthextension provides gRPC and HTTP credentials and metadata using Application Default Credentials: https://cloud.google.com/docs/authentication#adc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfig ¶ added in v0.46.0
Types ¶
type Config ¶
type Config struct { // Project is the project telemetry is sent to if the gcp.project.id // resource attribute is not set. If unspecified, this is determined using // application default credentials. Project string `mapstructure:"project"` // QuotaProject specifies a project for quota and billing purposes. The // caller must have serviceusage.services.use permission on the project. // // For more information please read: // https://cloud.google.com/apis/docs/system-parameters QuotaProject string `mapstructure:"quota_project"` // TokenType specifies which type of token will be generated. // default: access_token TokenType string `mapstructure:"token_type,omitempty"` // Audience specifies the audience claim used for generating ID token. Audience string `mapstructure:"audience,omitempty"` // Scope specifies optional requested permissions. // See https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 Scopes []string `mapstructure:"scopes,omitempty"` }
Config stores the configuration for GCP Client Credentials.
Click to show internal directories.
Click to hide internal directories.