terraform

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformDownloadBaseURL = "https://dl.h8r.io/terraform"

TerraformDownloadBaseURL of downloading terraform

Variables

This section is empty.

Functions

This section is empty.

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