package
1.2.0-alpha.5
Repository: https://github.com/saratovsource/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewDuplicateError returns a *Error indicating "duplicate value".
NewForbiddenError returns a *Error indicating "forbidden".
NewInternalError returns a *Error indicating "internal error".
NewInvalidError returns a *Error indicating "invalid value".
NewErrorTypeMatcher returns an errors.Matcher that returns true if the provided error is a Error and has the provided ErrorType.
NewPath creates a root Path object.
NewNotFoundError returns a *Error indicating "value not found".
NewNotSupportedError returns a *Error indicating "unsupported value".
NewRequiredError returns a *Error indicating "value required".
NewTooLongError returns a *Error indicating "too long".
# Constants
ErrorTypeDuplicate is used to report collisions of values that must be unique (e.g.
ErrorTypeForbidden is used to report valid (as per formatting rules) values which would be accepted under some conditions, but which are not permitted by the current conditions (such as security policy).
ErrorTypeInternal is used to report other errors that are not related to user input.
ErrorTypeInvalid is used to report malformed values (e.g.
ErrorTypeNotFound is used to report failure to find a requested value (e.g.
ErrorTypeNotSupported is used to report unknown values for enumerated fields (e.g.
ErrorTypeRequired is used to report required values that are not provided (e.g.
ErrorTypeTooLong is used to report that the given value is too long.