gcputil

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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