package
1.2.0-alpha.4
Repository: https://github.com/ericchiang/kubernetes.git
Documentation: pkg.go.dev
# Functions
IsCIdentifier tests for a string that conforms the definition of an identifier in C.
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
IsDNS952Label tests for a string that conforms to the definition of a label in DNS (RFC 952).
No description provided by the author
IsValidIPv4 tests that the argument is a valid IPv4 address.
No description provided by the author
No description provided by the author
IsValidPortName check that the argument is valid syntax.
IsValidPortNum tests that the argument is a valid, non-zero port number.
NewDuplicateError returns a *Error indicating "duplicate value".
NewErrorTypeMatcher returns an errors.Matcher that returns true if the provided error is a Error and has the provided ErrorType.
NewForbiddenError returns a *Error indicating "forbidden".
NewInternalError returns a *Error indicating "internal error".
NewInvalidError returns a *Error indicating "invalid value".
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Error is an implementation of the 'error' interface, which represents a validation error.