Versions in this module Expand all Collapse all v0 v0.3.0 Aug 24, 2026 v0.2.0 Aug 12, 2026 Changes in this version + const DefaultStateName + var ErrDefaultWorkspaceNotSupported = errors.New(...) + var ErrWorkspacesNotSupported = errors.New("workspaces not supported") + func ParseDeclaredVariableValues(vv map[string]UnparsedVariableValue, decls map[string]*configs.Variable) (tofu.InputValues, tfdiags.Diagnostics) + func ParseUndeclaredVariableValues(vv map[string]UnparsedVariableValue, decls map[string]*configs.Variable) (tofu.InputValues, tfdiags.Diagnostics) + func ParseVariableValues(vv map[string]UnparsedVariableValue, decls map[string]*configs.Variable) (tofu.InputValues, tfdiags.Diagnostics) + func ReadPathOrContents(poc string) (string, error) + func TestBackendStateForceUnlock(t *testing.T, b1, b2 Backend) + func TestBackendStateForceUnlockInWS(t *testing.T, b1, b2 Backend, ws string) + func TestBackendStateLocks(t *testing.T, b1, b2 Backend) + func TestBackendStateLocksInWS(t *testing.T, b1, b2 Backend, ws string) + func TestBackendStates(t *testing.T, b Backend) + func TestWrapConfig(raw map[string]interface{}) hcl.Body + type Backend interface + ConfigSchema func() *configschema.Block + Configure func(context.Context, cty.Value) tfdiags.Diagnostics + DeleteWorkspace func(ctx context.Context, name string, force bool) error + PrepareConfig func(cty.Value) (cty.Value, tfdiags.Diagnostics) + StateMgr func(ctx context.Context, workspace string) (statemgr.Full, error) + Workspaces func(context.Context) ([]string, error) + func TestBackendConfig(t *testing.T, b Backend, c hcl.Body) Backend + func TestBackendConfigWarningsAndErrors(t *testing.T, b Backend, c hcl.Body) (Backend, []string, []error) + type CLI interface + CLIInit func(*CLIOpts) error + type CLIOpts struct + ContextOpts *tofu.ContextOpts + Input bool + RunningInAutomation bool + StateArgs arguments.State + Validation bool + View views.BackendRemote + type Enhanced interface + Operation func(context.Context, *Operation) (*RunningOperation, error) + ServiceDiscoveryAliases func() ([]HostAlias, error) + type HostAlias struct + From svchost.Hostname + To svchost.Hostname + type InitFn func(encryption.StateEncryption) Backend + type Local interface + LocalRun func(context.Context, context.Context, *Operation) (*LocalRun, statemgr.Full, tfdiags.Diagnostics) + type LocalRun struct + ApplyOpts *tofu.ApplyOpts + Config *configs.Config + Core *tofu.Context + InputState *states.State + Plan *plans.Plan + PlanOpts *tofu.PlanOpts + type Operation struct + AllowUnsetVariables bool + AutoApprove bool + ConfigDir string + ConfigLoader configload.Loader + DependencyLocks *depsfile.Locks + Encryption encryption.Encryption + Excludes []addrs.Targetable + ForceReplace []addrs.AbsResourceInstance + GenerateConfigOut string + Hooks []tofu.Hook + PlanFile *planfile.WrappedPlanFile + PlanId string + PlanMode plans.Mode + PlanOutBackend *plans.Backend + PlanOutPath string + PlanRefresh bool + RootCall configs.StaticModuleCall + StateLocker clistate.Locker + SuppressForgetErrorsDuringDestroy bool + Targets []addrs.Targetable + Type OperationType + UIIn tofu.UIInput + Variables map[string]UnparsedVariableValue + View views.Operation + Workspace string + func (o *Operation) HasConfig() bool + func (o *Operation) ReportResult(op *RunningOperation, diags tfdiags.Diagnostics) + type OperationResult int + const OperationFailure + const OperationSuccess + func (r OperationResult) ExitStatus() int + type OperationType uint + const OperationTypeApply + const OperationTypeInvalid + const OperationTypePlan + const OperationTypeRefresh + func (i OperationType) String() string + type RunningOperation struct + Cancel context.CancelFunc + PlanEmpty bool + Result OperationResult + State *states.State + Stop context.CancelFunc + type UnparsedVariableValue interface + ParseVariableValue func(mode configs.VariableParsingMode) (*tofu.InputValue, tfdiags.Diagnostics)