Documentation ¶
Index ¶
- Constants
- func DeepCopy(m map[string]interface{}) (map[string]interface{}, error)
- func TerraformPath() string
- func TerraformVersion(path string) (string, error)
- type Cmd
- func (p *Cmd) ClearDir(path string) error
- func (p *Cmd) GetStderr() OutWriteCloser
- func (p *Cmd) Run() error
- func (p *Cmd) SetDir(name string)
- func (p *Cmd) SetLayout(v map[string]json.RawMessage)
- func (p *Cmd) SetLogPrefix(prefix string)
- func (p *Cmd) SetOp(op int32)
- func (p *Cmd) SetRemote(addr string)
- func (p *Cmd) SetRemotePath(path string)
- func (p *Cmd) SetVars(v map[string]interface{})
- type OutWriteCloser
Constants ¶
View Source
const ( ApplyOp = 0 DestroyOp = 1 PlanOp = 2 )
Variables ¶
This section is empty.
Functions ¶
func TerraformPath ¶
func TerraformPath() string
func TerraformVersion ¶
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) GetStderr ¶
func (p *Cmd) GetStderr() OutWriteCloser
func (*Cmd) Run ¶
- Prepares the Basic Directories. - Sets the stdout and stderr file. - Creates the Command. - Finally, runs the command.
func (*Cmd) SetLogPrefix ¶
func (*Cmd) SetRemotePath ¶
type OutWriteCloser ¶
type OutWriteCloser interface { io.WriteCloser Output(string) GetBuffer() []string }
func NewOutWriterCloser ¶
func NewOutWriterCloser(buffered bool, idents ...string) OutWriteCloser
Set the Output to a flat-file. Needs to be writeable to DB later.
Click to show internal directories.
Click to hide internal directories.