package
0.3.24
Repository: https://github.com/minamijoyo/tfmigrate.git
Documentation: pkg.go.dev

# Functions

GetTestAccBackendS3Config returns mocked backend s3 config for testing.
GetTestAccBackendS3Key returns the s3 key to use in acceptance tests' s3 backend.
GetTestAccS3Endpoint returns the s3 endpoint to use in acceptance tests.
IsPreleaseTerraformVersion returns true if terraform version is a prelease.
MatchTerraformVersion returns true if terraform version matches a given constraints.
NewExecutor returns a default executor for real environments.
NewMockExecutor returns a mock executor for testing.
NewPlan returns a new Plan instance with a given content of tfplan.
NewState returns a new State instance with a given content of tfstate.
NewTerraformCLI returns an implementation of the TerraformCLI interface.
SetupTestAcc is a common setup helper for acceptance tests.
SetupTestAccForStateReplaceProvider is an acceptance test helper specifically for initializing a temporary work directory with a given source for the purposes of testing `state replace-provider` actions.
SetupTestAccWithApply is an acceptance test helper for initializing a temporary work directory and applying a given source.
SkipUnlessAcceptanceTestEnabled skips acceptance tests unless TEST_ACC is set to 1.
UpdateTestAccSource updates a terraform configuration file with a given contents.

# Constants

AcceptableLegacyStateInitError is the error message returned by `terraform init` when a non-legacy Terraform CLI is used against a legacy Terraform state.
LegacyTerraformVersion is the legacy Terraform version used in acceptance testing.
MinimumTerraformVersionForStateReplaceProvider specifies the minimum supported Terraform version for StateReplaceProvider.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Command is an interface for wrapping os/exec.Cmd.
Executor abstracts the os command execution layer.
ExitError is an interface for wrapping os/exec.ExitError.
TerraformCLI is an interface for executing the terraform command.

# Type aliases

Plan is a named type for tfplan.
State is a named type for tfstate.