Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildWorkloadIdentityCredentials ¶
func BuildWorkloadIdentityCredentials(wif hyperv1.GCPWorkloadIdentityConfig, serviceAccountEmail string) (string, error)
BuildWorkloadIdentityCredentials creates the credential configuration JSON for Google Cloud SDK to use Workload Identity Federation with a specific service account email.
Types ¶
type CredentialSource ¶
type CredentialSource struct {
File string `json:"file"`
Format CredentialSourceFormat `json:"format"`
}
CredentialSource represents the credential source configuration for GCP external account credentials.
type CredentialSourceFormat ¶
type CredentialSourceFormat struct {
Type string `json:"type"`
}
CredentialSourceFormat represents the format of the credential source.
type ExternalAccountCredential ¶
type ExternalAccountCredential struct {
Type string `json:"type"`
Audience string `json:"audience"`
SubjectTokenType string `json:"subject_token_type"`
TokenURL string `json:"token_url"`
ServiceAccountImpersonationURL string `json:"service_account_impersonation_url"`
CredentialSource CredentialSource `json:"credential_source"`
}
ExternalAccountCredential represents the complete GCP external account credential configuration for Workload Identity Federation. This follows the Google Cloud credential configuration format.
Click to show internal directories.
Click to hide internal directories.