terragrunt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.0.1

func Apply(t *testing.T, options *terraform.Options, executor Executor, config core.RunTime, cmdExecutor CommandExecutor) error

func Destroy added in v0.0.1

func Destroy(t *testing.T, options *terraform.Options, executor Executor, config core.RunTime, cmdExecutor CommandExecutor, restore bool) error

Types

type CommandExecutor

type CommandExecutor interface {
	RunCommand(cmdName string, args []string, dir string, envVars map[string]string) ([]byte, error)
}

CommandExecutor abstracts command execution.

type Executor

type Executor interface {
	TgApplyAllE(t *testing.T, options *terraform.Options) (string, error)
	TgDestroyAllE(t *testing.T, options *terraform.Options) (string, error)
}

TerragruntExecutor abstracts Terragrunt execution methods.

type RealCommandExecutor

type RealCommandExecutor struct{}

RealCommandExecutor executes real system commands.

func (*RealCommandExecutor) RunCommand

func (e *RealCommandExecutor) RunCommand(cmdName string, args []string, dir string, envVars map[string]string) ([]byte, error)

type RealTerragruntExecutor

type RealTerragruntExecutor struct{}

func (*RealTerragruntExecutor) TgApplyAllE

func (e *RealTerragruntExecutor) TgApplyAllE(t *testing.T, options *terraform.Options) (string, error)

func (*RealTerragruntExecutor) TgDestroyAllE

func (e *RealTerragruntExecutor) TgDestroyAllE(t *testing.T, options *terraform.Options) (string, error)

Jump to

Keyboard shortcuts

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