terraform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentType = "terraform"

	AutoApproveFlag = "-auto-approve"
)

Variables

This section is empty.

Functions

func Clean

func Clean(ectx ExecutionContext, clearDataDir bool) error

func CleanPlanFile added in v0.2.0

func CleanPlanFile(exeCtx ExecutionContext) error

func ConstructWorkspaceName added in v0.2.0

func ConstructWorkspaceName(stack *stack.Stack, componentName string, config stack.ConfigWithMetadata) (string, error)

func ExecuteCommand added in v0.2.0

func ExecuteCommand(exeCtx ExecutionContext, args []string) error

func ExecuteShell added in v0.2.0

func ExecuteShell(exeCtx ExecutionContext) error

func GenerateBackendFile

func GenerateBackendFile(ectx ExecutionContext, format string) error

func GenerateVarFileFile

func GenerateVarFileFile(ectx ExecutionContext, format string) error

func SelectOrCreateWorkspace added in v0.2.0

func SelectOrCreateWorkspace(execCtx ExecutionContext) error

Types

type Backend

type Backend struct {
	Type string         `hcle:",label"`
	Data map[string]any `hcle:",body"`
}

type ExecutionContext

type ExecutionContext struct {
	Context  context.Context
	PlanFile string
	VarFile  string
	// contains filtered or unexported fields
}

func NewExecutionContext added in v0.2.0

func NewExecutionContext(ctx context.Context, stackName string, component string, dryRun bool) (ExecutionContext, error)

type Root

type Root struct {
	Terraform Terraform `json:"terraform" hcle:"terraform,block"`
}

type Terraform

type Terraform struct {
	Backend Backend `json:"-" hcle:"backend,block"`

	JSONBackend map[string]map[string]any `json:"backend,inline" `
}

Jump to

Keyboard shortcuts

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