terraform

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 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 PlanResult

type PlanResult struct {
	Adds     int
	Changes  int
	Destroys int
}

func (PlanResult) NoChanges

func (r PlanResult) NoChanges() bool

type Terraform

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

func NewTerraform

func NewTerraform(execPath, dir string, vars, varFiles []string) *Terraform

func (*Terraform) Apply

func (t *Terraform) Apply(ctx context.Context, w io.Writer) error

func (*Terraform) Init

func (t *Terraform) Init(ctx context.Context, w io.Writer) error

func (*Terraform) Plan

func (t *Terraform) Plan(ctx context.Context, w io.Writer) (PlanResult, error)

func (*Terraform) SelectWorkspace

func (t *Terraform) SelectWorkspace(ctx context.Context, workspace string) error

func (*Terraform) Version

func (t *Terraform) Version(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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