terraform

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDaemonlessTerraformer

func NewDaemonlessTerraformer(
	logger log.Logger,
	planner tfplan.PlanConfirmer,
	viper *viper.Viper,
	fs afero.Afero,
	statemanager state.Manager,
) lifecycle.Terraformer

func NewTerraformer

func NewTerraformer(
	logger log.Logger,
	daemon daemontypes.Daemon,
	planner tfplan.PlanConfirmer,
	viper *viper.Viper,
	statemanager state.Manager,
	fs afero.Afero,
) lifecycle.Terraformer

Types

type DaemonlessTerraformer

type DaemonlessTerraformer struct {
	Logger        log.Logger
	PlanConfirmer tfplan.PlanConfirmer
	Terraform     func(string) *exec.Cmd
	Status        daemontypes.StatusReceiver
	StateManager  state.Manager
	Viper         *viper.Viper
	FS            afero.Afero

	YesApplyTerraform bool

	// exposed for testing
	StateRestorer stateRestorer
	StateSaver    stateSaver
}

func (*DaemonlessTerraformer) Execute

func (t *DaemonlessTerraformer) Execute(ctx context.Context, release api.Release, step api.Terraform, confirmedChan chan bool) error

func (*DaemonlessTerraformer) WithStatusReceiver

func (t *DaemonlessTerraformer) WithStatusReceiver(
	statusReceiver daemontypes.StatusReceiver,
) lifecycle.Terraformer

type ForkTerraformer

type ForkTerraformer struct {
	Logger            log.Logger
	Daemon            daemontypes.Daemon
	PlanConfirmer     tfplan.PlanConfirmer
	Terraform         func(string) *exec.Cmd
	Viper             *viper.Viper
	FS                afero.Afero
	StateManager      state.Manager
	StateRestorer     stateRestorer
	StateSaver        stateSaver
	YesApplyTerraform bool
}

func (*ForkTerraformer) Execute

func (t *ForkTerraformer) Execute(ctx context.Context, release api.Release, step api.Terraform, terraformConfirmedChan chan bool) error

func (*ForkTerraformer) WithStatusReceiver

func (t *ForkTerraformer) WithStatusReceiver(status daemontypes.StatusReceiver) lifecycle.Terraformer

WithStatusReceiver is a no-op for the Terraformer implementation using Daemon

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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