package
1.12.0-alpha20250213
Repository: https://github.com/hashicorp/terraform.git
Documentation: pkg.go.dev

# Functions

ConfigDir returns the configuration directory for Terraform.
ConfigFile returns the default path to the configuration file.
EmptyCredentialsSourceForTests constructs a CredentialsSource with no credentials pre-loaded and which writes new credentials to a file at the given path.
EnvConfig returns a Config populated from environment variables.
GlobalPluginDirs returns directories that should be searched for globally-installed plugins (not specific to the current configuration).
LoadConfig reads the CLI configuration from the various filesystem locations and from the environment, returning a merged configuration along with any diagnostics (errors and warnings) encountered along the way.

# Constants

CredentialsInOtherFile means that there is already a credentials object for the host in a CLI config file other than credentials.tfrc.json.
CredentialsInPrimaryFile means that there is already a credentials object for the host in the credentials.tfrc.json file.
CredentialsNotAvailable means that we know that there are no credential available for the host.
CredentialsViaHelper indicates that no statically-configured credentials are available for the host but a helper program is available that may or may not have credentials for the host.

# Variables

BuiltinConfig is the built-in defaults for the configuration.
ProviderInstallationDirect is a ProviderInstallationSourceLocation representing installation from a provider's origin registry.

# Structs

Config is the structure of the configuration for the Terraform CLI.
ConfigCredentialsHelper is the structure of the "credentials_helper" nested block within the CLI configuration.
ConfigHost is the structure of the "host" nested block within the CLI configuration, which can be used to override the default service host discovery behavior for a particular hostname.
CredentialsSource is an implementation of svcauth.CredentialsSource that can read and write the CLI configuration, and possibly also delegate to a credentials helper when configured.
ProviderInstallation is the structure of the "provider_installation" nested block within the CLI configuration.
ProviderInstallationMethod represents an installation method block inside a provider_installation block.

# Interfaces

ProviderInstallationLocation is an interface type representing the different installation location types.

# Type aliases

CredentialsLocation describes a type of storage used for the credentials for a particular hostname.
ErrUnwritableHostCredentials is an error type that is returned when a caller tries to write credentials for a host that has existing credentials configured in a file that we cannot automatically update.
ProviderInstallationFilesystemMirror is a ProviderInstallationSourceLocation representing installation from a particular local filesystem mirror.
ProviderInstallationNetworkMirror is a ProviderInstallationSourceLocation representing installation from a particular local network mirror.