Documentation
¶
Index ¶
- func IsApplyFailed(err error) bool
- func IsDestroyFailed(err error) bool
- func IsPlanFailed(err error) bool
- func IsRefreshFailed(err error) bool
- func IsRetryScheduleError(err error) bool
- func NewApplyFailed(logs []byte) error
- func NewDestroyFailed(logs []byte) error
- func NewPlanFailed(logs []byte) error
- func NewRefreshFailed(logs []byte) error
- func NewRetryScheduleError(invocationCount, ttl int) error
- type LogDiagnostic
- 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 IsRetryScheduleError ¶ added in v0.9.0
IsRetryScheduleError returns whether the error is a retry error for the scheduler.
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.
func NewRetryScheduleError ¶ added in v0.9.0
Types ¶
type LogDiagnostic ¶
type LogDiagnostic struct {
Severity string `json:"severity"`
Summary string `json:"summary"`
Detail string `json:"detail"`
}
LogDiagnostic represents relevant fields of a Terraform CLI JSON-formatted log line diagnostic info
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