Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Audience string SubjectTokenType string TokenURL string TokenInfoURL string ServiceAccountImpersonationURL string ClientSecret string ClientID string CredentialSource CredentialSource QuotaProjectID string Scopes []string }
Config stores the configuration for fetching tokens with external credentials.
func (*Config) TokenSource ¶
func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource
TokenSource Returns an external account TokenSource struct. This is to be called by package google to construct a google.Credentials.
type CredentialSource ¶
type CredentialSource struct { File string `json:"file"` URL string `json:"url"` Headers map[string]string `json:"headers"` EnvironmentID string `json:"environment_id"` RegionURL string `json:"region_url"` RegionalCredVerificationURL string `json:"regional_cred_verification_url"` CredVerificationURL string `json:"cred_verification_url"` Format format `json:"format"` }
CredentialSource stores the information necessary to retrieve the credentials for the STS exchange.
Click to show internal directories.
Click to hide internal directories.