errors

package
v0.0.0-...-a438c6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsApplyFailed

func IsApplyFailed(err error) bool

IsApplyFailed returns whether error is due to failure of an apply operation.

func IsAsyncCreateFailed

func IsAsyncCreateFailed(err error) bool

IsAsyncCreateFailed returns whether error is due to failure of an async create operation.

func IsAsyncDeleteFailed

func IsAsyncDeleteFailed(err error) bool

IsAsyncDeleteFailed returns whether error is due to failure of an async delete operation.

func IsAsyncUpdateFailed

func IsAsyncUpdateFailed(err error) bool

IsAsyncUpdateFailed returns whether error is due to failure of an async update operation.

func IsDestroyFailed

func IsDestroyFailed(err error) bool

IsDestroyFailed returns whether error is due to failure of a destroy operation.

func IsPlanFailed

func IsPlanFailed(err error) bool

IsPlanFailed returns whether error is due to failure of a destroy operation.

func IsRefreshFailed

func IsRefreshFailed(err error) bool

IsRefreshFailed returns whether error is due to failure of a destroy operation.

func IsRetryScheduleError

func IsRetryScheduleError(err error) bool

IsRetryScheduleError returns whether the error is a retry error for the scheduler.

func NewApplyFailed

func NewApplyFailed(logs []byte) error

NewApplyFailed returns a new apply failure error with given logs.

func NewAsyncCreateFailed

func NewAsyncCreateFailed(err error) error

NewAsyncCreateFailed returns a new async crate failure.

func NewAsyncDeleteFailed

func NewAsyncDeleteFailed(err error) error

NewAsyncDeleteFailed returns a new async delete failure.

func NewAsyncUpdateFailed

func NewAsyncUpdateFailed(err error) error

NewAsyncUpdateFailed returns a new async update failure.

func NewDestroyFailed

func NewDestroyFailed(logs []byte) error

NewDestroyFailed returns a new destroy failure error with given logs.

func NewPlanFailed

func NewPlanFailed(logs []byte) error

NewPlanFailed returns a new destroy failure error with given logs.

func NewRefreshFailed

func NewRefreshFailed(logs []byte) error

NewRefreshFailed returns a new destroy failure error with given logs.

func NewRetryScheduleError

func NewRetryScheduleError(invocationCount, ttl int) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL