Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNameNotRFC1035Compatible appears when some of the provided names are not RFC1035 compatible. ErrNameNotRFC1035Compatible = func(fieldName string) error { return fmt.Errorf(`'%s' is not RFC 1035 compatible. The name should contain only lowercase alphanumeric characters or '-', start with an alphabetic character, end with an alphanumeric character`, fieldName, ) } // ErrNameTooLong when the given fieldName is too long. ErrNameTooLong = func(fieldName string) error { return fmt.Errorf("'%s' can be at most 22 characters long", fieldName) } )
Functions ¶
func ValidateEverestResourceName ¶
ValidateEverestResourceName names to be RFC-1035 compatible https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#rfc-1035-label-names. It has an additional limitation at most 22 characters.
func ValidateRFC1035 ¶
ValidateRFC1035 names to be RFC-1035 compatible https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#rfc-1035-label-names
func ValidateURL ¶
ValidateURL checks if the given string is a valid URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.