runner

package
v0.0.0-...-1e5cab2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: MIT Imports: 17 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
	BufferLogs            bool
	Github                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, opts *InitOptions) 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

func (*GraphRunner) TerraformValidate

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

type InitOptions

type InitOptions struct {
	BufferLogs bool
	Github     bool
}

type PlanOptions

type PlanOptions struct {
	ForceInit             bool
	IgnoreChangeDetection bool
	BufferLogs            bool
	Github                bool
	Lock                  bool
}

type ProxyOptions

type ProxyOptions struct {
	IgnoreChangeDetection bool
	BufferLogs            bool
	Github                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, opts *InitOptions) 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
	BufferLogs            bool
	Github                bool
	NoColor               bool
}

type ValidateOptions

type ValidateOptions struct {
	BufferLogs bool
	Github     bool
}

Jump to

Keyboard shortcuts

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