Documentation ¶
Index ¶
- func Arg(key string, values ...string) string
- type Cmd
- func (c *Cmd) Apply(argExtras ...string) error
- func (c *Cmd) ApplyTarget(target string) error
- func (c *Cmd) Close() error
- func (c *Cmd) Destroy(argExtras ...string) 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(argExtras ...string) error
- func (c *Cmd) Version(removeUpgradeWarning bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
GetWorkingDirectory returns the working directory used by terraform.
Click to show internal directories.
Click to hide internal directories.