Documentation ¶
Index ¶
- func Is(err error, codes ...KErrors) bool
- func IsAlreadyExists(err error) bool
- func IsConflict(err error) bool
- func IsForbidden(err error) bool
- func IsForbiddenC(err error) bool
- func IsForbiddenOrNotFound(err error) bool
- func IsInvalid(err error) bool
- func IsNotFound(err error) bool
- func NewResourceError(cause error, obj interface{}) error
- type KErrors
- type ResourceError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
IsAlreadyExists returns true if the given error is or is caused by a kubernetes AlreadyExistsError,
func IsConflict ¶
IsConflict returns true if the given error is or is caused by a kubernetes ConflictError,
func IsForbidden ¶
IsForbidden returns true if the given error is or is caused by a kubernetes ForbiddenError,
func IsForbiddenC ¶
func IsForbiddenOrNotFound ¶
IsForbiddenOrNotFound returns true if the given error is or is caused by a kubernetes NotFound or Forbidden,
func IsInvalid ¶
IsInvalid returns true if the given error is or is caused by a kubernetes InvalidError,
func IsNotFound ¶
IsNotFound returns true if the given error is or is caused by a kubernetes NotFoundError,
func NewResourceError ¶
Types ¶
type ResourceError ¶
type ResourceError struct { GVK schema.GroupVersionKind Namespace, Name string // contains filtered or unexported fields }
func (ResourceError) Cause ¶
func (r ResourceError) Cause() error
func (ResourceError) Error ¶
func (r ResourceError) Error() string
func (ResourceError) Unwrap ¶
func (r ResourceError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.