package
0.111.0
Repository: https://github.com/hashicorp/hcp-sdk-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

GetCredentialFilePath returns the credential file path, first looking for an overriding environment variable and then falling back to the default file location.
GetDefaultCredentialFile returns the credential file by searching the default credential file location or by using the credential file environment variable to look for an override.
NewBrowserLogin will return an oauth2.TokenSource that will return a Token from an interactive browser login.
ReadCredentialFile returns the credential file at the given path.
WriteCredentialFile writes the given credential file to the path.
WriteDefaultCredentialFile writes the credential file to the default credential file location or to the value of EnvHCPCredFile if set.

# Constants

CredentialFileName is the file name for the HCP credential file.
CredentialFileSchemeServicePrincipal is the credential file scheme value that indicates service principal credentials should be used to authenticate to HCP.
CredentialFileSchemeWorkload is the credential file scheme value that indicates workload identity credentials should be used to authenticate to HCP.
EnvHCPCredFile is the environment variable that sets the HCP Credential File location.

# Structs

CredentialFile stores information required to authenticate to HCP APIs.
OauthConfig configures authentication based on OAuth credentials.