invoker

package
v2.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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 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 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