executor

package
v0.0.0-...-6bf0adc Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env []string

Env - global list of environment variables.

Functions

This section is empty.

Types

type BackendSpec

type BackendSpec struct {
	Bucket string `json:"bucket,omitempty"`
	Key    string `json:"key,omitempty"`
	Region string `json:"region,omitempty"`
}

BackendSpec - terraform s3 bucket backend config.

type BashRunner

type BashRunner struct {
	Env []string
	// contains filtered or unexported fields
}

BashRunner - runs shell commands.

func NewBashRunner

func NewBashRunner(workingDir string, envVariables ...string) (*BashRunner, error)

NewBashRunner - create new bash runner.

func (*BashRunner) Run

func (b *BashRunner) Run(command string, secrets ...string) error

Run - exec command and hide secrets in log output.

func (*BashRunner) RunMutely

func (b *BashRunner) RunMutely(command string, secrets ...string) (string, string, error)

RunMutely - exec command and hide secrets in output. Return command output and errors output.

type KubectlRunner

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

KubectlRunner - exec kubectl commands.

func (*KubectlRunner) Apply

func (tr *KubectlRunner) Apply(tfVars interface{}, args ...string) error

Apply - exec terraform apply.

func (*KubectlRunner) ApplyPlan

func (tr *KubectlRunner) ApplyPlan(planFileName string, args ...string) error

ApplyPlan - exec terraform apply.

func (*KubectlRunner) Clear

func (tr *KubectlRunner) Clear() error

Clear - remove .terraform

func (*KubectlRunner) Destroy

func (tr *KubectlRunner) Destroy(tfVars interface{}, args ...string) error

Destroy - exec terraform apply.

func (*KubectlRunner) Import

func (tr *KubectlRunner) Import(tfVars interface{}, args ...string) error

Import - exec terraform apply.

func (*KubectlRunner) Init

func (tr *KubectlRunner) Init(backendConfig BackendSpec) error

Init - exec terraform init.

func (*KubectlRunner) Plan

func (tr *KubectlRunner) Plan(tfVars interface{}, args ...string) error

Plan - exec terraform plan.

func (*KubectlRunner) Version

func (tr *KubectlRunner) Version() (string, error)

Version - exec terraform version.

type TerraformRunner

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

TerraformRunner - exec terraform commands.

func NewKubectlRunner

func NewKubectlRunner(workingDir string) (*TerraformRunner, error)

NewKubectlRunner create kubectl runner.

func NewTerraformRunner

func NewTerraformRunner(workingDir string) (*TerraformRunner, error)

NewTerraformRunner create terraform runner.

func (*TerraformRunner) Apply

func (tr *TerraformRunner) Apply(tfVars interface{}, args ...string) error

Apply - exec terraform apply.

func (*TerraformRunner) ApplyPlan

func (tr *TerraformRunner) ApplyPlan(planFileName string, args ...string) error

ApplyPlan - exec terraform apply.

func (*TerraformRunner) Clear

func (tr *TerraformRunner) Clear() error

Clear - remove .terraform

func (*TerraformRunner) Destroy

func (tr *TerraformRunner) Destroy(tfVars interface{}, args ...string) error

Destroy - exec terraform apply.

func (*TerraformRunner) Import

func (tr *TerraformRunner) Import(tfVars interface{}, args ...string) error

Import - exec terraform apply.

func (*TerraformRunner) Init

func (tr *TerraformRunner) Init(backendConfig BackendSpec) error

Init - exec terraform init.

func (*TerraformRunner) Plan

func (tr *TerraformRunner) Plan(tfVars interface{}, args ...string) error

Plan - exec terraform plan.

func (*TerraformRunner) Version

func (tr *TerraformRunner) Version() (string, error)

Version - exec terraform version.

Jump to

Keyboard shortcuts

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