Documentation ¶
Index ¶
- func FindTerraform(ctx context.Context) (string, error)
- func NewCleanupErrorReport(applyErr error, logs []paltypes.RequestTrace) types.ErrorReport
- func NewCoverageReport(plan *tfjson.Plan, swaggerPath string) (coverage.CoverageReport, error)
- func NewCoverageReportFromState(state *tfjson.State, swaggerPath string) (coverage.CoverageReport, error)
- func NewDiffReport(plan *tfjson.Plan, logs []paltypes.RequestTrace) types.DiffReport
- func NewErrorReport(applyErr error, logs []paltypes.RequestTrace) types.ErrorReport
- func NewIdAddressFromState(state *tfjson.State) map[string]string
- func NewPassReport(plan *tfjson.Plan) types.PassReport
- func NewPassReportFromState(state *tfjson.State) types.PassReport
- type Action
- type Actions
- type Terraform
- func (t *Terraform) Apply() error
- func (t *Terraform) Destroy() error
- func (t *Terraform) Init() error
- func (t *Terraform) Plan() (*tfjson.Plan, error)
- func (t *Terraform) SetLogEnabled(enabled bool)
- func (t *Terraform) Show() (*tfjson.State, error)
- func (t *Terraform) Validate() (*tfjson.ValidateOutput, 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.
func NewCleanupErrorReport ¶
func NewCleanupErrorReport(applyErr error, logs []paltypes.RequestTrace) types.ErrorReport
func NewCoverageReport ¶
func NewDiffReport ¶
func NewDiffReport(plan *tfjson.Plan, logs []paltypes.RequestTrace) types.DiffReport
func NewErrorReport ¶
func NewErrorReport(applyErr error, logs []paltypes.RequestTrace) types.ErrorReport
func NewPassReport ¶
func NewPassReport(plan *tfjson.Plan) types.PassReport
func NewPassReportFromState ¶
func NewPassReportFromState(state *tfjson.State) types.PassReport
Types ¶
type Terraform ¶
type Terraform struct { LogEnabled bool // contains filtered or unexported fields }
func (*Terraform) SetLogEnabled ¶
Click to show internal directories.
Click to hide internal directories.