Documentation ¶
Overview ¶
Package invoker allows different Terraform versions to be invoked
Index ¶
- 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 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 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.