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

# Packages

No description provided by the author

# Functions

FromEnv will return a HCPConfigOption that will populate the configuration with values from the environment.
NewHCPConfig will return a HCPConfig.
WithAPI credentials is an option that can be used to provide a custom configuration for the API endpoint.
WithAuth credentials is an option that can be used to provide a custom URL for the auth endpoint.
WithClientCredentials credentials is an option that can be used to set HCP client credentials on the configuration.
WithCredentialFile sets the given credential file to be used as an authentication source.
WithCredentialFilePath will search for a credential file at the given path to be used as an authentication source.
WithOAuth2ClientID credentials is an option that can be used to provide a custom OAuth2 Client ID.
WithoutBrowserLogin disables the automatic opening of the browser login.
WithoutLogging disables this SDK from printing of any kind, this is necessary since there is not a consistent logger that is used throughout the project so a log level option is not sufficient.
WithoutOpenDefaultBrowser disables opening the default browser when browser login is enabled.
WithPortalURL credentials is an option that can be used to provide a custom URL for the portal.
WithProfile is an option that can be used to provide a custom UserProfile struct.
WithSCADA credentials is an option that can be used to provide a custom configuration for the SCADA endpoint.
WithTokenSource can be used to set a token source.
WithWorkloadIdentity exchanges a workload identity provider credentials for an HCP Service Principal token.

# Interfaces

HCPConfig provides configuration values that are useful to interact with HCP.

# Type aliases

HCPConfigOption are functions that modify the hcpConfig struct.