package
0.0.2
Repository: https://github.com/yubo/golib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

EmptyError returns a string explanation of a "must not be empty" validation failure.
InclusiveRangeError returns a string explanation of a numeric "must be between" validation failure.
IsCIdentifier tests for a string that conforms the definition of an identifier in C.
IsConfigMapKey tests for a string that is a valid key for a ConfigMap or Secret.
IsDNS1035Label tests for a string that conforms to the definition of a label in DNS (RFC 1035).
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).
IsDomainPrefixedPath checks if the given string is a domain-prefixed path (e.g.
IsEnvVarName tests if a string is a valid environment variable name.
IsFullyQualifiedDomainName checks if the domain name is fully qualified.
IsFullyQualifiedName checks if the name is fully qualified.
IsHTTPHeaderName checks that a string conforms to the Go HTTP library's definition of a valid header field name (a stricter subset than RFC7230).
IsInRange tests that the argument is in an inclusive range.
IsQualifiedName tests whether the value passed is what Kubernetes calls a "qualified name".
IsValidGroupID tests that the argument is a valid Unix GID.
IsValidIP tests that the argument is a valid IP address.
IsValidIPv4Address tests that the argument is a valid IPv4 address.
IsValidIPv6Address tests that the argument is a valid IPv6 address.
IsValidLabelValue tests whether the value passed is a valid label value.
IsValidPercent checks that string is in the form of a percentage.
IsValidPortName check that the argument is valid syntax.
IsValidPortNum tests that the argument is a valid, non-zero port number.
IsValidSocketAddr checks that string represents a valid socket address as defined in RFC 789.
IsValidUserID tests that the argument is a valid Unix UID.
IsWildcardDNS1123Subdomain tests for a string that conforms to the definition of a wildcard subdomain in DNS (RFC 1034 section 4.3.3).
MaxLenError returns a string explanation of a "string too long" validation failure.
RegexError returns a string explanation of a regex validation failure.

# Constants

DNS1035LabelMaxLength is a label's max length in DNS (RFC 1035).
DNS1123LabelMaxLength is a label's max length in DNS (RFC 1123).
DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123).
LabelValueMaxLength is a label's max length.