Documentation ¶
Index ¶
- Constants
- func GetValidateFuncs(v any) map[string]reflect.Value
- func IsAdminUser(userID string) bool
- func IsDNS1123Name(value string) error
- func IsDisplayName(value string) error
- func IsEmail(value string) error
- func IsPhoneNumber(value string) error
- func IsURL(value string) error
- func IsValiadURL(url string, timeout time.Duration) error
- func IsValidDNSName(str string) bool
- func IsValidIP(str string) bool
- func SkipVerify(obj metav1.Object) bool
- func ValidateHostPort(input string, fldPath *field.Path) field.ErrorList
Constants ¶
View Source
const ( DNSName string = `^([a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62}){1}(\.[a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62})*[\._]?$` SkipVerifyAnnotation = "onex.io/skip-verify" )
Variables ¶
This section is empty.
Functions ¶
func IsAdminUser ¶
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 IsPhoneNumber ¶
IsPhoneNumber test whether the given value meets the specification of the phone number.
func IsValiadURL ¶
IsValiadURL tests that https://host:port is reachble in timeout.
func IsValidDNSName ¶
func SkipVerify ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.