tfexec

package
v0.0.0-...-b468ac1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyParams

type ApplyParams struct {
	Vars map[string]interface{}
	Env  map[string]string
}

type DestroyParams

type DestroyParams struct {
	Vars map[string]interface{}
	Env  map[string]string
}

type ImportParams

type ImportParams struct {
	Vars    map[string]interface{}
	Env     map[string]string
	Address string
	ID      string
}

type InitParams

type InitParams struct {
	Backend S3BackendConfig
}

type NewTerraformFunc

type NewTerraformFunc func(workDir string) (*Terraform, error)

func LazyFromPath

func LazyFromPath() NewTerraformFunc

type Output

type Output struct {
	Value     interface{}
	Sensitive bool
}

type OutputParams

type OutputParams struct {
	Env map[string]string
}

type S3BackendConfig

type S3BackendConfig struct {
	Bucket      string
	Key         string
	Region      string
	Env         map[string]string
	Credentials aws.CredentialsProvider
}

type Terraform

type Terraform struct {
	// contains filtered or unexported fields
}

func (*Terraform) Apply

func (t *Terraform) Apply(ctx context.Context, params ApplyParams) error

func (*Terraform) Destroy

func (t *Terraform) Destroy(ctx context.Context, params DestroyParams) error

func (*Terraform) Import

func (t *Terraform) Import(ctx context.Context, params ImportParams) error

func (*Terraform) Init

func (t *Terraform) Init(ctx context.Context, params InitParams) error

func (*Terraform) Output

func (t *Terraform) Output(ctx context.Context, params OutputParams) (map[string]Output, error)

Jump to

Keyboard shortcuts

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