invoker

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package invoker allows different Terraform versions to be invoked

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terraform012Invoker

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

func (Terraform012Invoker) Apply

func (cmd Terraform012Invoker) Apply(ctx context.Context, workspace workspace.Workspace) error

func (Terraform012Invoker) Destroy

func (cmd Terraform012Invoker) Destroy(ctx context.Context, workspace workspace.Workspace) error

func (Terraform012Invoker) Import

func (cmd Terraform012Invoker) Import(ctx context.Context, workspace workspace.Workspace, resources map[string]string) error

func (Terraform012Invoker) Plan

func (Terraform012Invoker) Show

func (cmd Terraform012Invoker) Show(ctx context.Context, workspace workspace.Workspace) (string, error)

type TerraformDefaultInvoker

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

func (TerraformDefaultInvoker) Apply

func (cmd TerraformDefaultInvoker) Apply(ctx context.Context, workspace workspace.Workspace) error

func (TerraformDefaultInvoker) Destroy

func (cmd TerraformDefaultInvoker) Destroy(ctx context.Context, workspace workspace.Workspace) error

func (TerraformDefaultInvoker) Import

func (cmd TerraformDefaultInvoker) Import(ctx context.Context, workspace workspace.Workspace, resources map[string]string) error

func (TerraformDefaultInvoker) Plan

func (TerraformDefaultInvoker) ReplacementCommands

func (replace TerraformDefaultInvoker) ReplacementCommands() []command.TerraformCommand

func (TerraformDefaultInvoker) Show

type TerraformInvoker

type TerraformInvoker interface {
	Destroy(ctx context.Context, workspace workspace.Workspace) error
	Apply(ctx context.Context, workspace workspace.Workspace) error
	Show(ctx context.Context, workspace workspace.Workspace) (string, error)
	Plan(ctx context.Context, workspace workspace.Workspace) (executor.ExecutionOutput, error)
	Import(ctx context.Context, workspace workspace.Workspace, resources map[string]string) error
}

func NewTerraform012Invoker

func NewTerraform012Invoker(executor executor.TerraformExecutor, pluginDirectory string) TerraformInvoker

func NewTerraformDefaultInvoker

func NewTerraformDefaultInvoker(executor executor.TerraformExecutor, pluginDirectory string, pluginRenames map[string]string) TerraformInvoker

type TerraformInvokerBuilder

type TerraformInvokerBuilder interface {
	VersionedTerraformInvoker(version *version.Version) TerraformInvoker
}

func NewTerraformInvokerFactory

func NewTerraformInvokerFactory(executorBuilder executor.ExecutorBuilder, terraformPluginsDirectory string, pluginRenames map[string]string) TerraformInvokerBuilder

type TerraformInvokerFactory

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

func (TerraformInvokerFactory) VersionedTerraformInvoker

func (factory TerraformInvokerFactory) VersionedTerraformInvoker(tfVersion *version.Version) TerraformInvoker

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