Documentation ¶
Index ¶
- func IsApplyFailed(err error) bool
- func IsDestroyFailed(err error) bool
- func IsPlanFailed(err error) bool
- func IsRefreshFailed(err error) bool
- func NewApplyFailed(logs []byte) error
- func NewDestroyFailed(logs []byte) error
- func NewPlanFailed(logs []byte) error
- func NewRefreshFailed(logs []byte) error
- type LogDiagnostic
- type Range
- type TerraformLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsApplyFailed ¶
IsApplyFailed returns whether error is due to failure of an apply operation.
func IsDestroyFailed ¶
IsDestroyFailed returns whether error is due to failure of a destroy operation.
func IsPlanFailed ¶
IsPlanFailed returns whether error is due to failure of a destroy operation.
func IsRefreshFailed ¶
IsRefreshFailed returns whether error is due to failure of a destroy operation.
func NewApplyFailed ¶
NewApplyFailed returns a new apply failure error with given logs.
func NewDestroyFailed ¶
NewDestroyFailed returns a new destroy failure error with given logs.
func NewPlanFailed ¶
NewPlanFailed returns a new destroy failure error with given logs.
func NewRefreshFailed ¶
NewRefreshFailed returns a new destroy failure error with given logs.
Types ¶
type LogDiagnostic ¶
type LogDiagnostic struct { Severity string `json:"severity"` Summary string `json:"summary"` Detail string `json:"detail"` Range Range `json:"range"` }
LogDiagnostic represents relevant fields of a Terraform CLI JSON-formatted log line diagnostic info
type Range ¶
type Range struct {
FileName string `json:"filename"`
}
Range represents a line range in a Terraform workspace file
type TerraformLog ¶
type TerraformLog struct { Level string `json:"@level"` Message string `json:"@message"` Diagnostic LogDiagnostic `json:"diagnostic"` }
TerraformLog represents relevant fields of a Terraform CLI JSON-formatted log line