terraform

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 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 ApplyOptions added in v0.2.6

type ApplyOptions struct {
	Dir        string
	Suffix     string
	Namespace  string
	KubeConfig string
}

ApplyOptions controls the behavior of terraform.

func NewApplyOptions added in v0.2.6

func NewApplyOptions(dir, suffix, namespace, kubeconfig string) *ApplyOptions

NewApplyOptions returns an ApplyOption.

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(o *ApplyOptions) error

Destroy executes terraform destroy.

Jump to

Keyboard shortcuts

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