package
1.0.1
Repository: https://github.com/terramate-io/opentofulib.git
Documentation: pkg.go.dev

# Functions

DefaultIntermediateStatePersistRule is the default implementation of [IntermediateStateConditionalPersister.ShouldPersistIntermediateState] used when the selected state manager doesn't implement that interface.
New returns a new initialized local backend.
NewWithBackend returns a new local backend initialized with a dedicated backend for non-enhanced behavior.
TestLocal returns a configured Local struct with temporary paths and in-memory ContextOpts.
TestLocalProvider modifies the ContextOpts of the *Local parameter to have a provider with the given name.
TestNewLocalNoDefault is a factory for creating a TestLocalNoDefaultState.
TestNewLocalSingle is a factory for creating a TestLocalSingleState.

# Constants

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

# Structs

No description provided by the author
Local is an implementation of EnhancedBackend that performs all operations locally.
StateHook is a hook that continuously updates the state by calling WriteState on a statemgr.Full.
TestLocalNoDefaultState is a backend implementation that wraps Local and modifies it to support named states, but not the default state.
TestLocalSingleState is a backend implementation that wraps Local and modifies it to only support single states (returns ErrWorkspacesNotSupported for multi-state operations).

# Interfaces

IntermediateStateConditionalPersister is an optional extension of [statemgr.Persister] that allows an implementation to tailor the rules for whether to create intermediate state snapshots when OpenTofu Core emits events reporting that the state might have changed.