tfworkspace

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyInput

type ApplyInput struct {
	Env            map[string]string
	Vars           map[string]interface{}
	AttemptImport  map[string]string
	AwsCredentials aws.CredentialsProvider
}

type ApplyOutput

type ApplyOutput struct {
	Output map[string]interface{}
}

func (ApplyOutput) String

func (o ApplyOutput) String(key string) (string, error)

type Config

type Config struct {
	TerraformPath string
	TerraformFS   embed.FS
	S3Backend     tfexec.S3BackendConfig
}

type DestroyInput

type DestroyInput struct {
	Env            map[string]string
	Vars           map[string]interface{}
	AwsCredentials aws.CredentialsProvider
}

type Workspace

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

func New

func New(config Config) *Workspace

func (*Workspace) Apply

func (w *Workspace) Apply(ctx context.Context, input ApplyInput) (ApplyOutput, error)

func (*Workspace) Destroy

func (w *Workspace) Destroy(ctx context.Context, input DestroyInput) error

Jump to

Keyboard shortcuts

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