terraform

package
v6.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

func NewCmd

func NewCmd(stderr, outputBuffer io.Writer) Cmd

func (Cmd) Run

func (c Cmd) Run(stdout io.Writer, workingDirectory string, args []string, debug bool) error

type Executor

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

func NewExecutor

func NewExecutor(cmd terraformCmd, stateStore stateStore, fs fs, debug bool) Executor

func (Executor) Apply

func (e Executor) Apply(credentials map[string]string) error

func (Executor) Destroy

func (e Executor) Destroy(credentials map[string]string) error

func (Executor) Init

func (e Executor) Init() error

func (Executor) Output

func (e Executor) Output(outputName string) (string, error)

func (Executor) Outputs

func (e Executor) Outputs() (map[string]interface{}, error)

func (Executor) Setup

func (e Executor) Setup(template string, input map[string]interface{}) error

func (Executor) Version

func (e Executor) Version() (string, error)

type InputGenerator

type InputGenerator interface {
	Generate(storage.State) (map[string]interface{}, error)
	Credentials(state storage.State) map[string]string
}

type Manager

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

func NewManager

func NewManager(executor executor, templateGenerator TemplateGenerator, inputGenerator InputGenerator, terraformOutputBuffer *bytes.Buffer, logger logger) Manager

func (Manager) Apply

func (m Manager) Apply(bblState storage.State) (storage.State, error)

func (Manager) Destroy

func (m Manager) Destroy(bblState storage.State) (storage.State, error)

func (Manager) GetOutputs

func (m Manager) GetOutputs() (Outputs, error)

func (Manager) Init

func (m Manager) Init(bblState storage.State) error

func (Manager) ValidateVersion

func (m Manager) ValidateVersion() error

func (Manager) Version

func (m Manager) Version() (string, error)

type Outputs

type Outputs struct {
	Map map[string]interface{}
}

func (Outputs) GetString

func (o Outputs) GetString(key string) string

func (Outputs) GetStringMap

func (o Outputs) GetStringMap(key string) map[string]string

func (Outputs) GetStringSlice

func (o Outputs) GetStringSlice(key string) []string

type TemplateGenerator

type TemplateGenerator interface {
	Generate(storage.State) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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