package
0.4.3
Repository: https://github.com/sub-mod/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package etcd provides conversion of etcd errors to API errors.

# Functions

FromObject generates an statusError from an api.Status, if that is the type of obj; otherwise, returns an error created by fmt.Errorf.
IsAlreadyExists determines if the err is an error which indicates that a specified resource already exists.
IsConflict determines if the err is an error which indicates the provided update conflicts.
IsInvalid determines if the err is an error which indicates the provided resource is not valid.
IsNotFound returns true if the specified error was created by NewNotFoundErr.
NewAlreadyExists returns an error indicating the item requested exists by that identifier.
NewConflict returns an error indicating the item can't be updated as provided.
NewFieldDuplicate returns a ValidationError indicating "duplicate value".
NewFieldInvalid returns a ValidationError indicating "invalid value".
NewFieldNotFound returns a ValidationError indicating "value not found".
NewFieldNotSupported returns a ValidationError indicating "unsupported value".
NewFieldRequired returns a ValidationError indicating "value required".
NewInvalid returns an error indicating the item is invalid and cannot be processed.
NewNotFound returns a new error which indicates that the resource of the kind and the name was not found.
No description provided by the author

# Constants

ValidationErrorTypeDuplicate is used to report collisions of values that must be unique (e.g.
ValidationErrorTypeInvalid is used to report malformed values (e.g.
ValidationErrorTypeNotFound is used to report failure to find a requested value (e.g.
ValidationErrorTypeNotSupported is used to report valid (as per formatting rules) values that can not be handled (e.g.
ValidationErrorTypeRequired is used to report required values that are not provided (e.g.

# Structs

ValidationError is an implementation of the 'error' interface, which represents an error of validation.

# Type aliases

ErrorList is a collection of errors.
ValidationErrorType is a machine readable value providing more detail about why a field is invalid.