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

# Packages

Package backendbase contains helpers for implementing the parts of remote state backends that tend to be treated similarly across all implementations.
Package backendrun contains the additional types and helpers used by the few backends that actually run operations against Terraform configurations.
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

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.

# 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.

# Interfaces

Backend is the minimal interface that must be implemented to enable Terraform.

# Type aliases

InitFn is used to initialize a new backend.