Versions in this module Expand all Collapse all v0 v0.0.2 Mar 17, 2022 v0.0.1 Nov 8, 2021 Changes in this version + func FromObject(obj interface{}) error + func HasStatusCause(err error, name api.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) api.StatusReason + func StatusCause(err error, name api.CauseType) (api.StatusCause, bool) + func SuggestsClientDelay(err error) (int, bool) + type APIStatus interface + Status func() api.Status + type ErrorReporter struct + func NewClientErrorReporter(code int, verb string, reason string) *ErrorReporter + func (r *ErrorReporter) AsObject(err error) interface{} + type StatusError struct + ErrStatus api.Status + func NewAlreadyExists(name string) *StatusError + func NewApplyConflict(causes []api.StatusCause, message string) *StatusError + func NewBadRequest(reason string) *StatusError + func NewConflict(name string, err error) *StatusError + func NewForbidden(name string, err error) *StatusError + func NewGenericServerResponse(code int, verb string, name, serverMessage string, retryAfterSeconds int, ...) *StatusError + func NewGone(message string) *StatusError + func NewInternalError(err error) *StatusError + func NewInvalid(name string, errs field.ErrorList) *StatusError + func NewMethodNotSupported(action string) *StatusError + func NewNotFound(name string) *StatusError + func NewRequestEntityTooLargeError(message string) *StatusError + func NewResourceExpired(message string) *StatusError + func NewServerTimeout(operation string, retryAfterSeconds int) *StatusError + func NewServerTimeoutForKind(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() api.Status + type UnexpectedObjectError struct + Object interface{} + func (u *UnexpectedObjectError) Error() string