Documentation ¶
Index ¶
- type Cmd
- func (c *Cmd) Apply() error
- func (c *Cmd) ApplyTarget(target string) error
- func (c *Cmd) Close() error
- func (c *Cmd) Destroy() error
- func (c *Cmd) GetWorkingDirectory() string
- func (c *Cmd) Init(remoteKey string) error
- func (c *Cmd) Output(variable string) (string, bool, error)
- func (c *Cmd) Plan() error
- func (c *Cmd) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
Cmd is the terraform command to execute.
func New ¶
func New(dir, remoteStateBucket string, logger log.FieldLogger) (*Cmd, error)
New creates a new instance of Cmd through which to execute terraform.
func (*Cmd) ApplyTarget ¶
ApplyTarget invokes terraform apply with the given target.
func (*Cmd) GetWorkingDirectory ¶ added in v0.8.0
GetWorkingDirectory returns the working directory used by terraform.
Click to show internal directories.
Click to hide internal directories.