runner

package
v0.2.2-linux Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplyOp   = 0
	DestroyOp = 1
	PlanOp    = 2
)

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(m map[string]interface{}) (map[string]interface{}, error)

Map performs a deep copy of the given map m.

func TerraformPath

func TerraformPath() string

func TerraformVersion

func TerraformVersion(path string) (string, error)

Types

type Cmd

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

func (*Cmd) ClearDir

func (p *Cmd) ClearDir(path string) error

func (*Cmd) Run

func (p *Cmd) Run() error

- Prepares the Basic Directories. - Sets the stdout and stderr file. - Creates the Command. - Finally, runs the command.

func (*Cmd) SetDir

func (p *Cmd) SetDir(name string)

Base-Directory Setter.

func (*Cmd) SetLayout

func (p *Cmd) SetLayout(v map[string]json.RawMessage)

Layout Setter.

func (*Cmd) SetLogPrefix

func (p *Cmd) SetLogPrefix(prefix string)

func (*Cmd) SetOp

func (p *Cmd) SetOp(op int32)

Command Setter

func (*Cmd) SetRemote

func (p *Cmd) SetRemote(addr string)

func (*Cmd) SetRemotePath

func (p *Cmd) SetRemotePath(path string)

func (*Cmd) SetVars

func (p *Cmd) SetVars(v map[string]interface{})

SetVars is vars Setter.

Jump to

Keyboard shortcuts

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