Documentation ¶
Index ¶
- Variables
- type BackendSpec
- type BashRunner
- type KubectlRunner
- func (tr *KubectlRunner) Apply(tfVars interface{}, args ...string) error
- func (tr *KubectlRunner) ApplyPlan(planFileName string, args ...string) error
- func (tr *KubectlRunner) Clear() error
- func (tr *KubectlRunner) Destroy(tfVars interface{}, args ...string) error
- func (tr *KubectlRunner) Import(tfVars interface{}, args ...string) error
- func (tr *KubectlRunner) Init(backendConfig BackendSpec) error
- func (tr *KubectlRunner) Plan(tfVars interface{}, args ...string) error
- func (tr *KubectlRunner) Version() (string, error)
- type TerraformRunner
- func (tr *TerraformRunner) Apply(tfVars interface{}, args ...string) error
- func (tr *TerraformRunner) ApplyPlan(planFileName string, args ...string) error
- func (tr *TerraformRunner) Clear() error
- func (tr *TerraformRunner) Destroy(tfVars interface{}, args ...string) error
- func (tr *TerraformRunner) Import(tfVars interface{}, args ...string) error
- func (tr *TerraformRunner) Init(backendConfig BackendSpec) error
- func (tr *TerraformRunner) Plan(tfVars interface{}, args ...string) error
- func (tr *TerraformRunner) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
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.
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) 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) 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.