Documentation ¶
Overview ¶
Package invoker allows different Terraform versions to be invoked
Index ¶
- type Terraform012Invoker
- func (cmd Terraform012Invoker) Apply(ctx context.Context, workspace workspace.Workspace) error
- func (cmd Terraform012Invoker) Destroy(ctx context.Context, workspace workspace.Workspace) error
- func (cmd Terraform012Invoker) Import(ctx context.Context, workspace workspace.Workspace, ...) error
- func (cmd Terraform012Invoker) Plan(ctx context.Context, workspace workspace.Workspace) (executor.ExecutionOutput, error)
- func (cmd Terraform012Invoker) Show(ctx context.Context, workspace workspace.Workspace) (string, error)
- type TerraformDefaultInvoker
- func (cmd TerraformDefaultInvoker) Apply(ctx context.Context, workspace workspace.Workspace) error
- func (cmd TerraformDefaultInvoker) Destroy(ctx context.Context, workspace workspace.Workspace) error
- func (cmd TerraformDefaultInvoker) Import(ctx context.Context, workspace workspace.Workspace, ...) error
- func (cmd TerraformDefaultInvoker) Plan(ctx context.Context, workspace workspace.Workspace) (executor.ExecutionOutput, error)
- func (replace TerraformDefaultInvoker) ReplacementCommands() []command.TerraformCommand
- func (cmd TerraformDefaultInvoker) Show(ctx context.Context, workspace workspace.Workspace) (string, error)
- type TerraformInvoker
- type TerraformInvokerBuilder
- type TerraformInvokerFactory
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) Plan ¶
func (cmd Terraform012Invoker) Plan(ctx context.Context, workspace workspace.Workspace) (executor.ExecutionOutput, error)
type TerraformDefaultInvoker ¶
type TerraformDefaultInvoker struct {
// contains filtered or unexported fields
}
func (TerraformDefaultInvoker) Plan ¶
func (cmd TerraformDefaultInvoker) Plan(ctx context.Context, workspace workspace.Workspace) (executor.ExecutionOutput, error)
func (TerraformDefaultInvoker) ReplacementCommands ¶
func (replace TerraformDefaultInvoker) ReplacementCommands() []command.TerraformCommand
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.