Documentation ¶
Index ¶
- func IsApplyFailed(err error) bool
- func IsAsyncCreateFailed(err error) bool
- func IsAsyncDeleteFailed(err error) bool
- func IsAsyncUpdateFailed(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 NewAsyncCreateFailed(err error) error
- func NewAsyncDeleteFailed(err error) error
- func NewAsyncUpdateFailed(err error) 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 IsAsyncCreateFailed ¶
IsAsyncCreateFailed returns whether error is due to failure of an async create operation.
func IsAsyncDeleteFailed ¶
IsAsyncDeleteFailed returns whether error is due to failure of an async delete operation.
func IsAsyncUpdateFailed ¶
IsAsyncUpdateFailed returns whether error is due to failure of an async update 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 ¶
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 NewAsyncCreateFailed ¶
NewAsyncCreateFailed returns a new async crate failure.
func NewAsyncDeleteFailed ¶
NewAsyncDeleteFailed returns a new async delete failure.
func NewAsyncUpdateFailed ¶
NewAsyncUpdateFailed returns a new async update failure.
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 ¶
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