terraform

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigReader

func NewConfigReader() *configReader

Types

type Input

type Input struct {
	Optional bool
}

type Output

type Output struct {
	Sensitive bool
	Type      interface{}
	Value     interface{}
}

type Runner

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

func NewRunner

func NewRunner(
	cli run.CLI,
	configPath string,
	pluginPath string,
	configInputs map[string]Input,
) *Runner

in: cli - a CLI instance for the running the Terraform binary in: configPath - the Terraform configuration path in: configInputs - list of input variables expected by the Terraform configuration out: an instance of a runner that can be used to execute Terraform

func (*Runner) AddToEnv

func (r *Runner) AddToEnv(
	env map[string]string,
)

func (*Runner) Apply

func (r *Runner) Apply(
	args map[string]string,
) (map[string]Output, error)

func (*Runner) Destroy

func (r *Runner) Destroy() error

func (*Runner) GetOutput

func (r *Runner) GetOutput() (map[string]Output, error)

func (*Runner) Init

func (r *Runner) Init() error

func (*Runner) Plan

func (r *Runner) Plan(
	args map[string]string,
) error

func (*Runner) SetBackend

func (r *Runner) SetBackend(
	env map[string]string,
)

func (*Runner) SetEnv

func (r *Runner) SetEnv(
	env map[string]string,
)

func (*Runner) Taint

func (r *Runner) Taint(resources []string) error

Jump to

Keyboard shortcuts

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