Documentation ¶
Index ¶
- Variables
- func Error(msg string) error
- func Errorf(format string, args ...interface{}) error
- func Validate(v Validator) error
- func ValidateID(id string) error
- func ValidateLabelName(name string) error
- func ValidateLabelValue(value string) error
- func ValidateLabels(labels map[string]string) error
- func ValidateSubject(subject string) error
- type ValidationError
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingRequiredField = Error("missing required field") ErrInvalidValue = Error("invalid value") ErrReadOnlyField = Error("field is read-only") ErrInvalidLabelName = Errorf("label names %s, and %s", nameConstraint, lengthConstraint(64)) ErrInvalidLabelValue = Errorf("label values %s, and %s", nameConstraint, lengthConstraint(64)) ErrInvalidName = Errorf("names %s, and %s", nameConstraint, lengthConstraint(64)) ErrInvalidRoleName = Errorf("role names %s, and %s", nameConstraint, lengthConstraint(64)) ErrInvalidSubjectName = Errorf("subject names %s and %s", lengthConstraint(256), annoyingCharactersConstraint) ErrInvalidID = Errorf("ids %s, and %s", nameConstraint, lengthConstraint(128)) )
Functions ¶
func ValidateID ¶
func ValidateLabelName ¶
func ValidateLabelValue ¶
func ValidateLabels ¶
func ValidateSubject ¶
Types ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) GRPCStatus ¶
func (e *ValidationError) GRPCStatus() *status.Status
Click to show internal directories.
Click to hide internal directories.