terraform

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 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, 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() 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) GetWorkingDirectory added in v0.8.0

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 added in v0.8.0

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