Documentation ¶
Index ¶
- func IsDNS1123Name(value string) error
- func IsDisplayName(value string) error
- func IsEmail(value string) error
- func IsHTTPSReachle(host string, port int32, timeout time.Duration) error
- func IsPhoneNumber(value string) error
- func IsSubNetOverlapped(net1, net2 *net.IPNet) error
- func IsURL(value string) error
- func ValidateEnum(value interface{}, fldPath *field.Path, values interface{}) field.ErrorList
- func ValidateRESTConfig(ctx context.Context, config *rest.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDNS1123Name ¶
IsDNS1123Name tests for a string that conforms to the definition of a name in DNS (RFC 1123).
func IsDisplayName ¶
IsDisplayName test whether the given value meets the specification of the display name.
func IsHTTPSReachle ¶
IsHTTPSReachle tests that https://host:port is reachble in timeout.
func IsPhoneNumber ¶
IsPhoneNumber test whether the given value meets the specification of the phone number.
func IsSubNetOverlapped ¶
IsSubNetOverlapped test if two subnets are overlapped
func ValidateEnum ¶
ValidateEnum validates a given enum. nil or nil pointer is valid. zero value is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.