terraform

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arg

func Arg(key string, values ...string) string

Types

type Cmd

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

Cmd is the terraform command to execute.

func New

func New(dir, remoteStateBucket string, logger log.FieldLogger) (*Cmd, error)

New creates a new instance of Cmd through which to execute terraform.

func (*Cmd) Apply

func (c *Cmd) Apply(argExtras ...string) error

Apply invokes terraform apply.

func (*Cmd) ApplyTarget

func (c *Cmd) ApplyTarget(target string) error

ApplyTarget invokes terraform apply with the given target.

func (*Cmd) Close

func (c *Cmd) Close() error

Close is a no-op.

func (*Cmd) Destroy

func (c *Cmd) Destroy(argExtras ...string) error

Destroy invokes terraform destroy.

func (*Cmd) GetWorkingDirectory

func (c *Cmd) GetWorkingDirectory() string

GetWorkingDirectory returns the working directory used by terraform.

func (*Cmd) Init

func (c *Cmd) Init(remoteKey string) error

Init invokes terraform init.

func (*Cmd) Output

func (c *Cmd) Output(variable string) (string, bool, error)

Output invokes terraform output and returns the named value, true if it exists, and an empty string and false if it does not.

func (*Cmd) Plan

func (c *Cmd) Plan(argExtras ...string) error

Plan invokes terraform Plan.

func (*Cmd) Version

func (c *Cmd) Version(removeUpgradeWarning bool) (string, error)

Version invokes terraform version and returns the value.

Jump to

Keyboard shortcuts

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