verify

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(t *testing.T, pr *preview.Output, values *tfjson.StateModule)

func CompareParameters

func CompareParameters(t *testing.T, pr *preview.Output, values *tfjson.StateModule) bool

func CopyTFFS

func CopyTFFS(dir string, fsys fs.FS) error

CopyTFFS is copied from os.CopyFS and ignores tfstate and lockfiles.

func LatestTerraformVersion

func LatestTerraformVersion(ctx context.Context) *releases.LatestVersion

func TerraformTestVersions

func TerraformTestVersions(ctx context.Context) []src.Installable

TerraformTestVersions returns a list of Terraform versions to test.

func TerraformVersions

func TerraformVersions(ctx context.Context, constraints version.Constraints) ([]*releases.ExactVersion, error)

TerraformVersions will return all versions that match the constraints plus the current latest version.

Types

type Executable

type Executable struct {
	ExecPath string
	Version  string
	DirPath  string
	// contains filtered or unexported fields
}

func InstallTerraforms

func InstallTerraforms(ctx context.Context, t *testing.T, installables ...src.Installable) []Executable

func (Executable) WorkingDir

func (e Executable) WorkingDir(dir string) (WorkingExecutable, error)

type WorkingExecutable

type WorkingExecutable struct {
	Executable
	WorkingDir string
	TF         *tfexec.Terraform
}

func (WorkingExecutable) Apply

func (e WorkingExecutable) Apply(ctx context.Context) ([]byte, error)

func (WorkingExecutable) Init

func (e WorkingExecutable) Init(ctx context.Context) error

func (WorkingExecutable) Plan

func (e WorkingExecutable) Plan(ctx context.Context, outPath string) (bool, error)

func (WorkingExecutable) Show

func (WorkingExecutable) ShowPlan

func (e WorkingExecutable) ShowPlan(ctx context.Context, planPath string) (*tfjson.Plan, error)

func (WorkingExecutable) Validate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL