Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelName ¶
LabelName cleans up a string to be used as a RFC 1123 Label name. It does not enforce the 63 character limit.
RFC 1123 Label name:
- contain only lowercase alphanumeric characters or '-'
- start with an alphanumeric character
- end with an alphanumeric character
Examples:
- myproject, MYPROJECT -> myproject
- myProject, myProjecT, MyProject, MyProjecT -> my-project
- my.project, My.Project, my-project, My-Project -> my-project
func ValidateLabelName ¶
ValidateLabelName checks if the given name is a valid RFC 1123 Label name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.