terraform

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBin

func GetBin() string

GetBin returns the path to the terraform binary.

Types

type Client

type Client struct {
	// Path to the executable binary file of terraform.
	Binary string

	genericclioptions.IOStreams
}

Client interactive with terraform

func NewDefaultClient

func NewDefaultClient(streams genericclioptions.IOStreams) (*Client, error)

NewDefaultClient creates a default terraform client.

func (*Client) Check

func (c *Client) Check() error

Check checks if the version of terraform binary is available.

func (*Client) CheckAndInstall

func (c *Client) CheckAndInstall() error

CheckAndInstall will install terraform if necessary.

func (*Client) Destroy

func (c *Client) Destroy(workDir string) error

Destroy executes terraform destroy.

Jump to

Keyboard shortcuts

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