terraform

package
v0.0.0-...-8a8b58e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryPath

func BinaryPath() (string, error)

func BinaryPathInjected

func BinaryPathInjected(fs tfBinaryPathFs) (string, error)

Types

type CLI

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

func NewCLI

func NewCLI(errorBuffer, outputBuffer io.Writer, tfDataDir string) CLI

func (CLI) Run

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

func (CLI) RunWithEnv

func (c CLI) RunWithEnv(stdout io.Writer, workingDirectory string, args []string, extraEnvVars []string) error

type Executor

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

func NewExecutor

func NewExecutor(cli terraformCLI, bufferingCLI terraformCLI, stateStore stateStore, fs fs, debug bool, out io.Writer) 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) IsPaved

func (e Executor) IsPaved() (bool, 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, input string) error

func (Executor) Validate

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

func (Executor) Version

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

type InputGenerator

type InputGenerator struct {
}

func NewInputGenerator

func NewInputGenerator() InputGenerator

func (InputGenerator) Credentials

func (i InputGenerator) Credentials(state storage.State) map[string]string

func (InputGenerator) GenerateInput

func (i InputGenerator) GenerateInput(manifest artifacts.Manifest, state storage.State) (string, error)

type Manager

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

func NewManager

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

func (Manager) Apply

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

func (Manager) Destroy

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

func (Manager) GetOutputs

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

func (Manager) Init

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

func (Manager) IsPaved

func (m Manager) IsPaved() (bool, error)

func (Manager) Setup

func (m Manager) Setup(manifest artifacts.Manifest, kunlunState storage.State) error

func (Manager) Validate

func (m Manager) Validate(kunlunState storage.State) (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

func (Outputs) Keys

func (o Outputs) Keys() []string

type TemplateGenerator

type TemplateGenerator struct{}

func NewTemplateGenerator

func NewTemplateGenerator() TemplateGenerator

func (TemplateGenerator) GenerateTemplate

func (t TemplateGenerator) GenerateTemplate(manifest artifacts.Manifest, state storage.State) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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