Versions in this module Expand all Collapse all v0 v0.0.1 Jan 5, 2023 Changes in this version + func FromObject(obj runtime.Object) error + func HasStatusCause(err error, name metav1.CauseType) bool + func IsAlreadyExists(err error) bool + func IsBadRequest(err error) bool + func IsConflict(err error) bool + func IsForbidden(err error) bool + func IsGone(err error) bool + func IsInternalError(err error) bool + func IsInvalid(err error) bool + func IsMethodNotSupported(err error) bool + func IsNotAcceptable(err error) bool + func IsNotFound(err error) bool + func IsRequestEntityTooLargeError(err error) bool + func IsResourceExpired(err error) bool + func IsServerTimeout(err error) bool + func IsServiceUnavailable(err error) bool + func IsTimeout(err error) bool + func IsTooManyRequests(err error) bool + func IsUnauthorized(err error) bool + func IsUnexpectedObjectError(err error) bool + func IsUnexpectedServerError(err error) bool + func IsUnsupportedMediaType(err error) bool + func ReasonForError(err error) metav1.StatusReason + func StatusCause(err error, name metav1.CauseType) (metav1.StatusCause, bool) + func SuggestsClientDelay(err error) (int, bool) + type APIStatus interface + Status func() metav1.Status + type ErrorReporter struct + func NewClientErrorReporter(code int, verb string, reason string) *ErrorReporter + func (r *ErrorReporter) AsObject(err error) runtime.Object + type StatusError struct + ErrStatus metav1.Status + func NewAlreadyExists(qualifiedResource schema.GroupResource, name string) *StatusError + func NewApplyConflict(causes []metav1.StatusCause, message string) *StatusError + func NewBadRequest(reason string) *StatusError + func NewConflict(qualifiedResource schema.GroupResource, name string, err error) *StatusError + func NewForbidden(qualifiedResource schema.GroupResource, name string, err error) *StatusError + func NewGenerateNameConflict(qualifiedResource schema.GroupResource, name string, retryAfterSeconds int) *StatusError + func NewGenericServerResponse(code int, verb string, qualifiedResource schema.GroupResource, ...) *StatusError + func NewGone(message string) *StatusError + func NewInternalError(err error) *StatusError + func NewInvalid(qualifiedKind schema.GroupKind, name string, errs field.ErrorList) *StatusError + func NewMethodNotSupported(qualifiedResource schema.GroupResource, action string) *StatusError + func NewNotFound(qualifiedResource schema.GroupResource, name string) *StatusError + func NewRequestEntityTooLargeError(message string) *StatusError + func NewResourceExpired(message string) *StatusError + func NewServerTimeout(qualifiedResource schema.GroupResource, operation string, ...) *StatusError + func NewServerTimeoutForKind(qualifiedKind schema.GroupKind, operation string, retryAfterSeconds int) *StatusError + func NewServiceUnavailable(reason string) *StatusError + func NewTimeoutError(message string, retryAfterSeconds int) *StatusError + func NewTooManyRequests(message string, retryAfterSeconds int) *StatusError + func NewTooManyRequestsError(message string) *StatusError + func NewUnauthorized(reason string) *StatusError + func (e *StatusError) DebugError() (string, []interface{}) + func (e *StatusError) Error() string + func (e *StatusError) Status() metav1.Status + type UnexpectedObjectError struct + Object runtime.Object + func (u *UnexpectedObjectError) Error() string