Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
func IsNotExist ¶
func IsNotRequired ¶ added in v0.7.0
func IsUnderDeletion ¶
Types ¶
type Reason ¶
type Reason struct { Message string StatusReason StatusReason }
type StatusError ¶ added in v0.12.0
type StatusError struct {
Reason
}
func AlreadyExist ¶
func AlreadyExist(s string) *StatusError
func NotExist ¶
func NotExist(s string) *StatusError
func NotRequired ¶ added in v0.7.0
func NotRequired() *StatusError
func UnderDeletion ¶
func UnderDeletion() *StatusError
func (*StatusError) Error ¶ added in v0.12.0
func (e *StatusError) Error() string
func (*StatusError) Status ¶ added in v0.12.0
func (e *StatusError) Status() Reason
type StatusReason ¶
type StatusReason string
const ( StatusReasonAlreadyExist StatusReason = "already exist" StatusReasonNotExist StatusReason = "resource not exist" StatusReasonUnderDeletion StatusReason = "under deletion" StatusReasonNotRequired StatusReason = "not required" StatusReasonUnknown StatusReason = "unknown" )
func ReasonForError ¶
func ReasonForError(err error) StatusReason
Click to show internal directories.
Click to hide internal directories.