terraform

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExitCode

func GetExitCode(err error) int

Types

type Option

type Option func(*options)

func WithAdditionalEnvs

func WithAdditionalEnvs(shared, init, plan, apply []string) Option

func WithAdditionalFlags

func WithAdditionalFlags(shared, init, plan, apply []string) Option

func WithVarFiles

func WithVarFiles(files []string) Option

func WithVars

func WithVars(vars []string) Option

func WithoutColor

func WithoutColor() Option

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, opts ...Option) *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