orchestration

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectExecutor

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

ProjectExecutor is the executor for terraform commands given a list of projects

func NewProjectExecutor

func NewProjectExecutor(terraformExecFn terraformExecutorFn, stdout io.Writer, stderr io.Writer, stdin io.Reader) *ProjectExecutor

NewProjectExecutor ProjectExecutor constructor

func NewTerraformProjectExecutor

func NewTerraformProjectExecutor(stdout io.Writer, stderr io.Writer, stdin io.Reader) *ProjectExecutor

NewTerraformProjectExecutor ProjectExecutor constructor with terraform

func NewTerraformProjectExecutorWithOS

func NewTerraformProjectExecutorWithOS() *ProjectExecutor

NewTerraformProjectExecutorWithOS ProjectExecutor constructor with terraform and default OS streams

func (ProjectExecutor) Execute

func (p ProjectExecutor) Execute(projects []project.TerraformProject, args []string) error

Execute executes terraform in each project

type ProjectOrderResolver

type ProjectOrderResolver struct {
	ReadDirFn func(name string) ([]fs.DirEntry, error)
}

ProjectOrderResolver resolves the terraform projects in order of precedence

func NewProjectOrderResolver

func NewProjectOrderResolver() *ProjectOrderResolver

NewProjectOrderResolver ProjectOrderResolver constructor

func (ProjectOrderResolver) Resolve

Resolve resolves the terraform projects in order of precedence

Jump to

Keyboard shortcuts

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