Versions in this module Expand all Collapse all v0 v0.1.1 Mar 11, 2024 v0.1.0 Oct 19, 2023 Changes in this version + func GetFileNameFromEnv(override string) string + func GetWellKnownFileName() string + type ClientCredentialsFile struct + Installed *Config3LO + Web *Config3LO + func ParseClientCredentials(b []byte) (*ClientCredentialsFile, error) + type Config3LO struct + AuthURI string + ClientID string + ClientSecret string + RedirectURIs []string + TokenURI string + type CredentialSource struct + CredVerificationURL string + EnvironmentID string + Executable *ExecutableConfig + File string + Format Format + Headers map[string]string + IMDSv2SessionTokenURL string + RegionURL string + RegionalCredVerificationURL string + URL string + type CredentialType int + const ExternalAccountAuthorizedUserKey + const ExternalAccountKey + const GDCHServiceAccountKey + const ImpersonatedServiceAccountKey + const ServiceAccountKey + const UnknownCredType + const UserCredentialsKey + func ParseFileType(b []byte) (CredentialType, error) + type ExecutableConfig struct + Command string + OutputFile string + TimeoutMillis *int + type ExternalAccountAuthorizedUserFile struct + Audience string + ClientID string + ClientSecret string + QuotaProjectID string + RefreshToken string + RevokeURL string + TokenInfoURL string + TokenURL string + Type string + func ParseExternalAccountAuthorizedUser(b []byte) (*ExternalAccountAuthorizedUserFile, error) + type ExternalAccountFile struct + Audience string + ClientID string + ClientSecret string + CredentialSource CredentialSource + QuotaProjectID string + ServiceAccountImpersonation ServiceAccountImpersonationInfo + ServiceAccountImpersonationURL string + SubjectTokenType string + TokenInfoURL string + TokenURL string + Type string + UniverseDomain string + WorkforcePoolUserProject string + func ParseExternalAccount(b []byte) (*ExternalAccountFile, error) + type Format struct + SubjectTokenFieldName string + Type string + type GDCHServiceAccountFile struct + CertPath string + FormatVersion string + Name string + PrivateKey string + PrivateKeyID string + Project string + TokenURL string + Type string + func ParseGDCHServiceAccount(b []byte) (*GDCHServiceAccountFile, error) + type ImpersonatedServiceAccountFile struct + CredSource json.RawMessage + Delegates []string + ServiceAccountImpersonationURL string + Type string + UniverseDomain string + func ParseImpersonatedServiceAccount(b []byte) (*ImpersonatedServiceAccountFile, error) + type ServiceAccountFile struct + AuthURL string + ClientEmail string + ClientID string + PrivateKey string + PrivateKeyID string + ProjectID string + TokenURL string + Type string + UniverseDomain string + func ParseServiceAccount(b []byte) (*ServiceAccountFile, error) + type ServiceAccountImpersonationInfo struct + TokenLifetimeSeconds int + type UserCredentialsFile struct + ClientID string + ClientSecret string + QuotaProjectID string + RefreshToken string + Type string + func ParseUserCredentials(b []byte) (*UserCredentialsFile, error)