terraform

package
v4.10.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 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, debug bool) Executor

func (Executor) Apply

func (e Executor) Apply(input map[string]string, template, prevTFState string) (string, error)

func (Executor) Destroy

func (e Executor) Destroy(input map[string]string, template, prevTFState string) (string, error)

func (Executor) Import

func (e Executor) Import(input ImportInput) (string, error)

func (Executor) Output

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

func (Executor) Outputs

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

func (Executor) Version

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

type ExecutorError

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

func NewExecutorError

func NewExecutorError(tfStateFilename string, err error, debug bool) ExecutorError

func (ExecutorError) Error

func (t ExecutorError) Error() string

func (ExecutorError) TFState

func (t ExecutorError) TFState() (string, error)

type ImportInput

type ImportInput struct {
	TerraformAddr string
	AWSResourceID string
	TFState       string
	Creds         storage.AWS
}

type InputGenerator

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

func NewInputGenerator

func NewInputGenerator(gcpInputGenerator inputGenerator, awsInputGenerator inputGenerator, azureInputGenerator inputGenerator) InputGenerator

func (InputGenerator) Generate

func (i InputGenerator) Generate(state storage.State) (map[string]string, error)

type Manager

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

func NewManager

func NewManager(args NewManagerArgs) 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(state storage.State) (map[string]interface{}, error)

func (Manager) ValidateVersion

func (m Manager) ValidateVersion() error

func (Manager) Version

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

type ManagerError

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

func NewManagerError

func NewManagerError(bblState storage.State, executorError executorError) ManagerError

func (ManagerError) BBLState

func (m ManagerError) BBLState() (storage.State, error)

func (ManagerError) Error

func (m ManagerError) Error() string

type NewManagerArgs

type NewManagerArgs struct {
	Executor              executor
	TemplateGenerator     templateGenerator
	InputGenerator        inputGenerator
	AWSOutputGenerator    outputGenerator
	AzureOutputGenerator  outputGenerator
	GCPOutputGenerator    outputGenerator
	TerraformOutputBuffer *bytes.Buffer
	Logger                logger
	StackMigrator         stackMigrator
}

type TemplateGenerator

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

func NewTemplateGenerator

func NewTemplateGenerator(gcpTemplateGenerator templateGenerator, awsTemplateGenerator templateGenerator, azureTemplateGenerator templateGenerator) TemplateGenerator

func (TemplateGenerator) Generate

func (t TemplateGenerator) Generate(state storage.State) string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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