def

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyProcessor

type DependencyProcessor interface {
	Process() (map[string]cty.Value, bool, error)
}

DependencyProcessor can process a dependency and return the values from output. Each dependency processor will run in its own context, with separate environment variables. All dependency resolving that can be done in same context can be run in one processor, but use multiple processors to separate the context they run in

type Executor

type Executor interface {
	Execute(options *shell.Options, command string, args ...string) error
	NewOutputProcessor() OutputProcessor
}

Executor executes terraform commands

type Generator

type Generator interface {
	GenerateOverrides(file *loader.ParsedFile) ([]byte, bool, error)
	GenerateDependencies(file *loader.ParsedFile) ([]DependencyProcessor, bool, error)
	GenerateVariables(file *loader.ParsedFile) ([]byte, error)
}

Generator for generating terraform assets

type Options

type Options struct {
	Runner *hooks.Runner
}

Options sent to New function when making a new Engine.

type OutputProcessor

type OutputProcessor interface {
	shell.OutputProcessor

	GetOutput() (map[string]cty.Value, error)
}

OutputProcessor can parse the output from terraform and parse it into a map of values. It implements the shell.OutputProcessor interface so it can be sent into shell executor and read the values directly. Calling GetOutput after executing shell command should return the output values it found

type VersionCompatibility

type VersionCompatibility interface {
	GetValidCommands() []string
	GetInvalidArgs(command string) []string
}

VersionCompatibility checks terraform executor for capabilities

Jump to

Keyboard shortcuts

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