package
0.9.1
Repository: https://github.com/hashicorp/go-gcp-common.git
Documentation: pkg.go.dev

# Functions

Credentials attempts to parse GcpCredentials from a JSON string.
FindCredentials attempts to obtain GCP credentials in the following ways: * Parse JSON from provided credentialsJson * Parse JSON from the environment variables GOOGLE_CREDENTIALS or GOOGLE_CLOUD_KEYFILE_JSON * Parse JSON file ~/.gcp/credentials * Google Application Default Credentials (see https://developers.google.com/identity/protocols/application-default-credentials).
GetHttpClient creates an HTTP client from the given Google credentials and scopes.
No description provided by the author
OAuth2RSAPublicKey returns the public key with the given key ID from Google's public set of OAuth 2.0 keys.
OAuth2RSAPublicKeyWithEndpoint returns the public key with the given key ID from Google's public set of OAuth 2.0 keys.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PublicKey returns a public key from a Google PEM key file (type TYPE_X509_PEM_FILE).
ServiceAccount wraps a call to the GCP IAM API to get a service account.
ServiceAccountKey wraps a call to the GCP IAM API to get a service account key.
ServiceAccountPublicKey returns the public key with the given key ID for the given service account if it exists.
ServiceAccountPublicKeyWithEndpoint returns the public key with the given key ID for the given service account if it exists.

# Constants

ServiceAccountCredentialsTemplate is used with https://pkg.go.dev/google.golang.org/[email protected]/iamcredentials/v1.
No description provided by the author
No description provided by the author
ServiceAccountTemplate is used with Google IAM v1.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GcpCredentials represents a simplified version of the Google Cloud Platform credentials file format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author