internal

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

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddSSHKeyIfExist

func AddSSHKeyIfExist()

func CreateK8SConfig

func CreateK8SConfig() (*rest.Config, error)

func LoadEnv

func LoadEnv() error

func UpdateSecretWithOutputs

func UpdateSecretWithOutputs(outputs map[string][]byte) error

Types

type EnvConfig

type EnvConfig struct {
	WorkingDir       string
	TerraformVersion string
	PodNamespace     string
	OutputSecretName string
	Workspace        string
	Destroy          bool
	VarFilesPath     string
}
var Env *EnvConfig

type TerraformRunner

type TerraformRunner struct {
	WorkingDir string
	CMD        *tfexec.Terraform
}

func Setup

func Setup() (*TerraformRunner, error)

func (*TerraformRunner) Apply

func (r *TerraformRunner) Apply(opts ...tfexec.ApplyOption) error

func (*TerraformRunner) Destroy

func (r *TerraformRunner) Destroy(opts ...tfexec.DestroyOption) error

func (*TerraformRunner) GetApplyOptions

func (r *TerraformRunner) GetApplyOptions() []tfexec.ApplyOption

func (*TerraformRunner) GetDestroyOptions

func (r *TerraformRunner) GetDestroyOptions() []tfexec.DestroyOption

func (*TerraformRunner) GetOutputs

func (r *TerraformRunner) GetOutputs() (map[string][]byte, error)

func (*TerraformRunner) GetPlanOptions

func (r *TerraformRunner) GetPlanOptions() []tfexec.PlanOption

func (*TerraformRunner) Init

func (r *TerraformRunner) Init() error

func (*TerraformRunner) Plan

func (r *TerraformRunner) Plan(opts ...tfexec.PlanOption) error

func (*TerraformRunner) SelectWorkspace

func (r *TerraformRunner) SelectWorkspace(workspace string) error

Jump to

Keyboard shortcuts

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