Documentation
¶
Index ¶
- Constants
- func EmptyError() string
- func IsDNS1123Label(value string) []string
- func IsDNS1123Subdomain(value string) []string
- func IsQualifiedName(value string) []string
- func IsValidLabelValue(value string) []string
- func MaxLenError(length int) string
- func RegexError(msg string, fmt string, examples ...string) string
Constants ¶
const DNS1123LabelMaxLength int = 63
const DNS1123SubdomainMaxLength int = 253
const LabelValueMaxLength int = 63
Variables ¶
This section is empty.
Functions ¶
func EmptyError ¶
func EmptyError() string
EmptyError returns a string explanation of a "must not be empty" validation failure.
func IsDNS1123Label ¶
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
func IsDNS1123Subdomain ¶
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
func IsQualifiedName ¶
IsQualifiedName tests whether the value passed is what Kubernetes calls a "qualified name". This is a format used in various places throughout the system. If the value is not valid, a list of error strings is returned. Otherwise an empty list (or nil) is returned.
func IsValidLabelValue ¶
IsValidLabelValue tests whether the value passed is a valid label value. If the value is not valid, a list of error strings is returned. Otherwise an empty list (or nil) is returned.
func MaxLenError ¶
MaxLenError returns a string explanation of a "string too long" validation failure.
Types ¶
This section is empty.