Documentation
¶
Index ¶
- func Compare(t *testing.T, pr *preview.Output, values *tfjson.StateModule)
- func CompareParameters(t *testing.T, pr *preview.Output, values *tfjson.StateModule) bool
- func CopyTFFS(dir string, fsys fs.FS) error
- func LatestTerraformVersion(ctx context.Context) *releases.LatestVersion
- func TerraformTestVersions(ctx context.Context) []src.Installable
- func TerraformVersions(ctx context.Context, constraints version.Constraints) ([]*releases.ExactVersion, error)
- type Executable
- type WorkingExecutable
- func (e WorkingExecutable) Apply(ctx context.Context) ([]byte, error)
- func (e WorkingExecutable) Init(ctx context.Context) error
- func (e WorkingExecutable) Plan(ctx context.Context, outPath string) (bool, error)
- func (e WorkingExecutable) Show(ctx context.Context) (*tfjson.State, error)
- func (e WorkingExecutable) ShowPlan(ctx context.Context, planPath string) (*tfjson.Plan, error)
- func (e WorkingExecutable) Validate(ctx context.Context) (*tfjson.ValidateOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareParameters ¶
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) Validate ¶
func (e WorkingExecutable) Validate(ctx context.Context) (*tfjson.ValidateOutput, error)
Click to show internal directories.
Click to hide internal directories.