Documentation
¶
Index ¶
- Constants
- Variables
- func FormatString(s string) string
- func IsIllegalLength(s string, min int, max int) bool
- func IsReservedBuName(s string) error
- func Restricted(s, regdata string) bool
- func ValidateDescription(s string) error
- func ValidateEmail(s string) error
- func ValidateKubernetesName(s string) error
- func ValidateLabels(object string, labels map[string]string) error
- func ValidateName(s string) error
- func ValidateNodePortNum(nodePort int32) error
- func ValidatePortNum(port int32) error
- func ValidateString(s string) error
Constants ¶
View Source
const ( NameMinLen = 1 NameMaxLen = 64 DescriptionMinLen = 1 DescriptionMaxLen = 64 )
View Source
const ( NodePortMin = 30000 NodePortMax = 32767 )
Variables ¶
View Source
var LabelsStrMaxLenMap = map[string]int{ constant.K8S_RESOURCE_TYPE_NODE: 2048, constant.K8S_RESOURCE_TYPE_APP: 64, }
Functions ¶
func FormatString ¶
func ValidateDescription ¶
func ValidateEmail ¶
func ValidateKubernetesName ¶
func ValidateName ¶
func ValidateNodePortNum ¶
func ValidatePortNum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.