package
1.1.0-beta2-not-internal-4
Repository: https://github.com/muratcelep/terraform.git
Documentation: pkg.go.dev

# Packages

Package init contains the list of backends that can be initialized and basic helper functions for initializing those backends.
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ParseDeclaredVariableValues processes a map of unparsed variable values and returns an input values map of the ones declared in the specified variable declaration mapping.
ParseUndeclaredVariableValues processes a map of unparsed variable values and returns an input values map of the ones not declared in the specified declaration map along with detailed diagnostics about values of undeclared variables being present, depending on the source of these values.
ParseVariableValues processes a map of unparsed variable values by correlating each one with the given variable declarations which should be from a root module.
If the argument is a path, Read loads it and returns the contents, otherwise the argument is assumed to be the desired contents and is simply returned.
TestBackendConfig validates and configures the backend with the given configuration.
TestBackendStateForceUnlock verifies that the lock error is the expected type, and the lock can be unlocked using the ID reported in the error.
TestBackendStateForceUnlockInWS verifies that the lock error is the expected type, and the lock can be unlocked using the ID reported in the error.
TestBackendStateLocks will test the locking functionality of the remote state backend.
TestBackendStateLocksInWS will test the locking functionality of the remote state backend.
TestBackend will test the functionality of a Backend.
TestWrapConfig takes a raw data structure and converts it into a synthetic hcl.Body to use for testing.

# Constants

DefaultStateName is the name of the default, initial state that every backend must have.
OperationFailure indicates that the operation encountered some sort of error, and thus may have been only partially performed or not performed at all.
OperationSuccess indicates that the operation completed as expected.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrDefaultWorkspaceNotSupported is returned when an operation does not support using the default workspace, but requires a named workspace to be selected.
ErrWorkspacesNotSupported is an error returned when a caller attempts to perform an operation on a workspace other than "default" for a backend that doesn't support multiple workspaces.

# Structs

CLIOpts are the options passed into CLIInit for the CLI interface.
LocalRun represents the assortment of objects that we can collect or calculate from an Operation object, which we can then use for local operations.
An operation represents an operation for Terraform to execute.
RunningOperation is the result of starting an operation.

# Interfaces

Backend is the minimal interface that must be implemented to enable Terraform.
CLI is an optional interface that can be implemented to be initialized with information from the Terraform CLI.
Enhanced implements additional behavior on top of a normal backend.
Local implements additional behavior on a Backend that allows local operations in addition to remote operations.
UnparsedVariableValue represents a variable value provided by the caller whose parsing must be deferred until configuration is available.

# Type aliases

InitFn is used to initialize a new backend.
OperationResult describes the result status of an operation.
OperationType is an enum used with Operation to specify the operation type to perform for Terraform.