Versions in this module Expand all Collapse all v0 v0.4.0 Mar 31, 2022 Changes in this version + var ErrInvalidID = Errorf("ids %s, and %s", nameConstraint, lengthConstraint(128)) + var ErrInvalidLabelName = Errorf("label names %s, and %s", nameConstraint, lengthConstraint(64)) + var ErrInvalidLabelValue = Errorf("label values %s, and %s", nameConstraint, lengthConstraint(64)) + var ErrInvalidName = Errorf("names %s, and %s", nameConstraint, lengthConstraint(64)) + var ErrInvalidRoleName = Errorf("role names %s, and %s", nameConstraint, lengthConstraint(64)) + var ErrInvalidSubjectName = Errorf("subject names %s and %s", lengthConstraint(256), annoyingCharactersConstraint) + var ErrInvalidValue = Error("invalid value") + var ErrMissingRequiredField = Error("missing required field") + var ErrReadOnlyField = Error("field is read-only") + 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 struct + func (e *ValidationError) Error() string + func (e *ValidationError) GRPCStatus() *status.Status + type Validator interface + Validate func() error