package
0.21.4
Repository: https://github.com/linxiulei/kubernetes.git
Documentation: pkg.go.dev

# Functions

NewFieldDuplicate returns a *ValidationError indicating "duplicate value".
NewFieldForbidden returns a *ValidationError indicating "forbidden".
NewFieldInvalid returns a *ValidationError indicating "invalid value".
NewFieldNotFound returns a *ValidationError indicating "value not found".
NewFieldRequired returns a *ValidationError indicating "value required".
No description provided by the author
NewFieldValueNotSupported returns a *ValidationError indicating "unsupported value".
NewValidationErrorFieldPrefixMatcher returns an errors.Matcher that returns true if the provided error is a ValidationError and has a field with the provided prefix.
NewValidationErrorFieldPrefixMatcher returns an errors.Matcher that returns true if the provided error is a ValidationError and has the provided ValidationErrorType.

# Constants

ValidationErrorTypeDuplicate is used to report collisions of values that must be unique (e.g.
ValidationErrorTypeForbidden is used to report valid (as per formatting rules) values which would be accepted by some api instances, but which would invoke behavior not permitted by this api instance (such as due to stricter security policy).
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.
ValidationErrorTypeTooLong is used to report that given value is too long.

# Structs

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

# Type aliases

No description provided by the author
ValidationErrorType is a machine readable value providing more detail about why a field is invalid.