Versions in this module Expand all Collapse all v0 v0.1.0 May 24, 2021 Changes in this version + const STDERR + const STDOUT + func BoolPtr(a bool) *bool + func FalsePtr() *bool + func IntPtr(a int) *int + func StringMapPtr(a map[string]string) *map[string]string + func StringPtr(a string) *string + func StringSlice(a []*string) (o []string) + func TruePtr() *bool + type OutputLog struct + Entries []*OutputLogEntry + func NewOutputLogs() *OutputLog + func (ol *OutputLog) Append(ole *OutputLogEntry) *OutputLogEntry + func (ol *OutputLog) Error(err error) *OutputLogEntry + func (ol *OutputLog) Stderr(message string) *OutputLogEntry + func (ol *OutputLog) StderrWithTags(message string, tags []string) *OutputLogEntry + func (ol *OutputLog) Stdout(message string) *OutputLogEntry + func (ol *OutputLog) StdoutWithTags(message string, tags []string) *OutputLogEntry + func (ol *OutputLog) String() (output string) + type OutputLogEntry struct + Content string + Tags []string + Type string + func (ole *OutputLogEntry) String() string + type TerraformAction struct + Cmd *exec.Cmd + Dir string + func (a *TerraformAction) InitLogger(log *OutputLog) (err error) + func (a *TerraformAction) Initialise() *TerraformAction + func (a *TerraformAction) Run() (err error) + type TerraformActionParams interface + Opts func() map[string][]string + OptsString func() string + OptsStringSlice func() []string + type TerraformCli struct + func NewTerraformClient() *TerraformCli + func NewTerraformClientWithBinPath(binPath string) *TerraformCli + func (client *TerraformCli) WithWorkingDirectory(workingDirectory string) *TerraformCli + func (t *TerraformCli) Apply() *TerraformAction + func (t *TerraformCli) Get(params *TerraformGetParams) *TerraformAction + func (t *TerraformCli) Init(params *TerraformInitParams) *TerraformAction + func (t *TerraformCli) Plan(params *TerraformPlanParams) *TerraformAction + type TerraformGetParams struct + Directory string + func (t TerraformGetParams) Opts() map[string][]string + func (t TerraformGetParams) OptsString() string + func (t TerraformGetParams) OptsStringSlice() []string + type TerraformInitParams struct + Backend *bool + BackendConfig string + ForceCopy bool + FromModule string + Get *bool + GetPlugins *bool + Input *bool + Lock *bool + LockTimeout int + NoColor bool + PluginDir string + Reconfigure bool + Upgrade *bool + VerifyPlugins *bool + func NewTerraformInitParams() *TerraformInitParams + func (p *TerraformInitParams) Opts() map[string][]string + func (p *TerraformInitParams) OptsString() string + func (p *TerraformInitParams) OptsStringSlice() []string + type TerraformOutput struct + Stderr io.ReadCloser + Stdout io.ReadCloser + type TerraformPlanParams struct + Destroy bool + DetailedExitcode bool + Input *bool + Lock *bool + LockTimeout int + ModuleDepth *int + NoColor bool + Out *string + Parallelism *int + Refresh *bool + State *string + Target []*string + Var map[string]string + VarFile []*string + func NewTerraformPlanParams() *TerraformPlanParams + func (p *TerraformPlanParams) Opts() map[string][]string + func (p *TerraformPlanParams) OptsString() string + func (p *TerraformPlanParams) OptsStringSlice() []string