runner

package
v0.0.0-...-13c9884 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOptions

type ApplyOptions struct {
	ForceInit             bool
	IgnoreChangeDetection bool
	Destroy               bool
	AutoApprove           bool
}

type GraphRunner

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

GraphRunner will run a set of commands on a graph of nodes. Untainted nodes (no changes) will be skipped. The nodes are batched based on a batching function, and all nodes in the same batch will be run in parallel.

func NewGraphRunner

func NewGraphRunner(batcher batcher.BatchFunc, hashHandler hash.Handler, workers int) *GraphRunner

func (*GraphRunner) TerraformApply

func (gr *GraphRunner) TerraformApply(ctx context.Context, dg *graph.Graph, opts *ApplyOptions) error

func (*GraphRunner) TerraformInit

func (gr *GraphRunner) TerraformInit(ctx context.Context, dg *graph.Graph) error

func (*GraphRunner) TerraformPlan

func (gr *GraphRunner) TerraformPlan(ctx context.Context, dg *graph.Graph, opts *PlanOptions) error

func (*GraphRunner) TerraformProxy

func (gr *GraphRunner) TerraformProxy(ctx context.Context, dg *graph.Graph, opts *ProxyOptions) error

func (*GraphRunner) TerraformShow

func (gr *GraphRunner) TerraformShow(ctx context.Context, dg *graph.Graph, opts *ShowPlanOptions) error

type PlanOptions

type PlanOptions struct {
	ForceInit             bool
	IgnoreChangeDetection bool
	Lock                  bool
}

type ProxyOptions

type ProxyOptions struct {
	IgnoreChangeDetection bool
	Command               []string
}

type Runner

type Runner interface {
	TerraformApply(ctx context.Context, dg *graph.Graph, opts *ApplyOptions) error
	TerraformInit(ctx context.Context, dg *graph.Graph) error
	TerraformPlan(ctx context.Context, dg *graph.Graph, opts *PlanOptions) error
	TerraformProxy(ctx context.Context, dg *graph.Graph, opts *ProxyOptions) error
	TerraformShow(ctx context.Context, dg *graph.Graph, opts *ShowPlanOptions) error
}

type ShowPlanOptions

type ShowPlanOptions struct {
	ForceInit             bool
	IgnoreChangeDetection bool
	NoColor               bool
}

Jump to

Keyboard shortcuts

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