package
0.4.0
Repository: https://github.com/hyperhq/hypernetes.git
Documentation: pkg.go.dev

# Functions

Duplicate returns a *Error indicating "duplicate value".
Forbidden returns a *Error indicating "forbidden".
InternalError returns a *Error indicating "internal error".
Invalid 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.
NotFound returns a *Error indicating "value not found".
NotSupported returns a *Error indicating "unsupported value".
Required returns a *Error indicating "value required".
TooLong 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.

# Structs

Error is an implementation of the 'error' interface, which represents a field-level validation error.
Path represents the path from some root to a particular field.

# Type aliases

ErrorList holds a set of Errors.
ErrorType is a machine readable value providing more detail about why a field is invalid.