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 ErrorStatus ¶
type ErrorStatus struct {
Reason
}
func AlreadyExist ¶
func AlreadyExist(s string) *ErrorStatus
func NotExist ¶
func NotExist(s string) *ErrorStatus
func NotRequired ¶ added in v0.7.0
func NotRequired() *ErrorStatus
func UnderDeletion ¶
func UnderDeletion() *ErrorStatus
func (*ErrorStatus) Error ¶
func (e *ErrorStatus) Error() string
func (*ErrorStatus) Status ¶
func (e *ErrorStatus) Status() Reason
type Reason ¶
type Reason struct { Message string StatusReason StatusReason }
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.