package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/apimachinery.git
Documentation: pkg.go.dev

# Functions

FromObject generates an StatusError from an metav1.Status, if that is the type of obj; otherwise, returns an UnexpecteObjectError.
HasStatusCause returns true if the provided error has a details cause with the provided type name.
IsAlreadyExists determines if the err is an error which indicates that a specified resource already exists.
IsBadRequest determines if err is an error which indicates that the request is invalid.
IsConflict determines if the err is an error which indicates the provided update conflicts.
IsForbidden determines if err is an error which indicates that the request is forbidden and cannot be completed as requested.
IsGone is true if the error indicates the requested resource is no longer available.
IsInternalError determines if err is an error which indicates an internal server error.
IsInvalid determines if the err is an error which indicates the provided resource is not valid.
IsMethodNotSupported determines if the err is an error which indicates the provided action could not be performed because it is not supported by the server.
IsNotAcceptable determines if err is an error which indicates that the request failed due to an invalid Accept header It supports wrapped errors and returns false when the error is nil.
IsNotFound returns true if the specified error was created by NewNotFound.
IsRequestEntityTooLargeError determines if err is an error which indicates the request entity is too large.
IsResourceExpired is true if the error indicates the resource has expired and the current action is no longer possible.
IsServerTimeout determines if err is an error which indicates that the request needs to be retried by the client.
IsServiceUnavailable is true if the error indicates the underlying service is no longer available.
IsStoreReadError determines if err is due to either failure to transform the data from the storage, or failure to decode the object appropriately.
IsTimeout determines if err is an error which indicates that request times out due to long processing.
IsTooManyRequests determines if err is an error which indicates that there are too many requests that the server cannot handle.
IsUnauthorized determines if err is an error which indicates that the request is unauthorized and requires authentication by the user.
IsUnexpectedObjectError determines if err is due to an unexpected object from the master.
IsUnexpectedServerError returns true if the server response was not in the expected API format, and may be the result of another HTTP actor.
IsUnsupportedMediaType determines if err is an error which indicates that the request failed due to an invalid Content-Type header It supports wrapped errors and returns false when the error is nil.
NewAlreadyExists returns an error indicating the item requested exists by that identifier.
NewApplyConflict returns an error including details on the requests apply conflicts.
NewBadRequest creates an error that indicates that the request is invalid and can not be processed.
NewClientErrorReporter will respond with valid v1.Status objects that report unexpected server responses.
NewConflict returns an error indicating the item can't be updated as provided.
NewForbidden returns an error indicating the requested action was forbidden.
NewGenerateNameConflict returns an error indicating the server was not able to generate a valid name for a resource.
NewGenericServerResponse returns a new error for server responses that are not in a recognizable form.
NewGone returns an error indicating the item no longer available at the server and no forwarding address is known.
NewInternalError returns an error indicating the item is invalid and cannot be processed.
NewInvalid returns an error indicating the item is invalid and cannot be processed.
NewMethodNotSupported returns an error indicating the requested action is not supported on this kind.
NewNotFound returns a new error which indicates that the resource of the kind and the name was not found.
NewRequestEntityTooLargeError returns an error indicating that the request entity was too large.
NewResourceExpired creates an error that indicates that the requested resource content has expired from the server (usually due to a resourceVersion that is too old).
NewServerTimeout returns an error indicating the requested action could not be completed due to a transient error, and the client should try again.
NewServerTimeoutForKind should not exist.
NewServiceUnavailable creates an error that indicates that the requested service is unavailable.
NewTimeoutError returns an error indicating that a timeout occurred before the request could be completed.
NewTooManyRequests creates an error that indicates that the client must try again later because the specified endpoint is not accepting requests.
NewTooManyRequestsError returns an error indicating that the request was rejected because the server has received too many requests.
NewUnauthorized returns an error indicating the client is not authorized to perform the requested action.
ReasonForError returns the HTTP status for a particular error.
StatusCause returns the named cause from the provided error if it exists and the error unwraps to the type APIStatus.
SuggestsClientDelay returns true if this error suggests a client delay as well as the suggested seconds to wait, or false if the error does not imply a wait.

# Structs

ErrorReporter converts generic errors into runtime.Object errors without requiring the caller to take a dependency on meta/v1 (where Status lives).
StatusError is an error intended for consumption by a REST API server; it can also be reconstructed by clients from a REST response.
UnexpectedObjectError can be returned by FromObject if it's passed a non-status object.

# Interfaces

APIStatus is exposed by errors that can be converted to an api.Status object for finer grained details.