terraform

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

Cmd is the terraform command to execute.

func New

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

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

func (*Cmd) Apply

func (c *Cmd) Apply() 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() error

Destroy invokes terraform destroy.

func (*Cmd) Init

func (c *Cmd) Init() 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) Version

func (c *Cmd) Version() (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