Documentation ¶
Index ¶
- func FindTerraform(ctx context.Context, minVersion, maxVersion *version.Version) (string, error)
- type Action
- type Actions
- type Terraform
- func (t *Terraform) Apply() error
- func (t *Terraform) Destroy() error
- func (t *Terraform) GetExec() *tfexec.Terraform
- func (t *Terraform) GetWorkingDirectory() string
- func (t *Terraform) Import(address string, id string) error
- func (t *Terraform) ImportAdd(address string, id string) (string, error)
- func (t *Terraform) Init() error
- func (t *Terraform) ListGenericResources(p *tfjson.Plan) []types.GenericResource
- func (t *Terraform) ListGenericUpdateResources(p *tfjson.Plan) []types.GenericUpdateResource
- func (t *Terraform) Plan() (*tfjson.Plan, error)
- func (t *Terraform) RefreshState(resources []string) error
- func (t *Terraform) SetLogEnabled(enabled bool)
- func (t *Terraform) Show() (*tfjson.State, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTerraform ¶
FindTerraform finds the path to the terraform executable whose version meets the min/max version constraint. It first tries to find from the local OS PATH. If there is no match, it will then download the release of the minVersion from hashicorp to the tfDir.
Types ¶
type Terraform ¶
type Terraform struct { LogEnabled bool // contains filtered or unexported fields }
func NewTerraform ¶
func (*Terraform) GetWorkingDirectory ¶
func (*Terraform) ListGenericResources ¶
func (t *Terraform) ListGenericResources(p *tfjson.Plan) []types.GenericResource
func (*Terraform) ListGenericUpdateResources ¶
func (t *Terraform) ListGenericUpdateResources(p *tfjson.Plan) []types.GenericUpdateResource
func (*Terraform) RefreshState ¶ added in v0.5.0
func (*Terraform) SetLogEnabled ¶
Click to show internal directories.
Click to hide internal directories.