kubernetes/staging/src/k8s.io/apiserver/pkg/storage/errors.go

var ErrResourceVersionSetOnCreate

var ErrStorageNotReady

const ErrCodeKeyNotFound

const ErrCodeKeyExists

const ErrCodeResourceVersionConflicts

const ErrCodeInvalidObj

const ErrCodeUnreachable

const ErrCodeTimeout

var errCodeToMessage

func NewKeyNotFoundError(key string, rv int64) *StorageError {}

func NewKeyExistsError(key string, rv int64) *StorageError {}

func NewResourceVersionConflictsError(key string, rv int64) *StorageError {}

func NewUnreachableError(key string, rv int64) *StorageError {}

func NewTimeoutError(key, msg string) *StorageError {}

func NewInvalidObjError(key, msg string) *StorageError {}

type StorageError

func (e *StorageError) Error() string {}

// IsNotFound returns true if and only if err is "key" not found error.
func IsNotFound(err error) bool {}

// IsExist returns true if and only if err is "key" already exists error.
func IsExist(err error) bool {}

// IsUnreachable returns true if and only if err indicates the server could not be reached.
func IsUnreachable(err error) bool {}

// IsConflict returns true if and only if err is a write conflict.
func IsConflict(err error) bool {}

// IsRequestTimeout returns true if and only if err indicates that the request has timed out.
func IsRequestTimeout(err error) bool {}

// IsInvalidObj returns true if and only if err is invalid error
func IsInvalidObj(err error) bool {}

func isErrCode(err error, code int) bool {}

type InvalidError

func (e InvalidError) Error() string {}

// IsInvalidError returns true if and only if err is an InvalidError.
func IsInvalidError(err error) bool {}

func NewInvalidError(errors field.ErrorList) InvalidError {}

type InternalError

func (e InternalError) Error() string {}

func (e InternalError) Unwrap() error {}

// IsInternalError returns true if and only if err is an InternalError.
func IsInternalError(err error) bool {}

func NewInternalError(err error) InternalError {}

var tooLargeResourceVersionCauseMsg

// NewTooLargeResourceVersionError returns a timeout error with the given retrySeconds for a request for
// a minimum resource version that is larger than the largest currently available resource version for a requested resource.
func NewTooLargeResourceVersionError(minimumResourceVersion, currentRevision uint64, retrySeconds int) error {}

// IsTooLargeResourceVersion returns true if the error is a TooLargeResourceVersion error.
func IsTooLargeResourceVersion(err error) bool {}