Documentation
¶
Index ¶
- type Cmd
- func (c *Cmd) Apply(cluster *model.Cluster) error
- func (c *Cmd) ApplyDeletion(cluster *model.Cluster) 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(cluster *model.Cluster) error
- func (c *Cmd) PlanDeletion(cluster *model.Cluster) 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) ApplyDeletion ¶ added in v0.11.0
ApplyDeletion invokes terraform apply for deletion.
func (*Cmd) ApplyTarget ¶
ApplyTarget invokes terraform apply with the given target.
func (*Cmd) GetWorkingDirectory ¶
GetWorkingDirectory returns the working directory used by terraform.
func (*Cmd) Output ¶
Output invokes terraform output and returns the named value, true if it exists, and an empty string and false if it does not.
func (*Cmd) PlanDeletion ¶ added in v0.11.0
PlanDeletion invokes terraform plan for deletion.
Click to show internal directories.
Click to hide internal directories.