Documentation ¶
Index ¶
- Constants
- Variables
- func CheckNewPassRequest(user, newPass, uuidCode string) error
- func CheckResetPassRequest(newPass, oldPass string) error
- func CheckSignupRequest(user, email, pass string) error
- func CheckTokenRequest(user, pass string) error
- func CheckWorkspaceName(ws string) error
- func K8sCheckDomain(domain string) bool
- func K8sCheckName(name string) bool
- func MongoIndexValidate(id string) error
- func ValidationAppName(app string) bool
- func ValidationCodeNumber(code string) bool
- func ValidationCompanyName(co string) bool
- func ValidationDomain(domain string) bool
- func ValidationEmail(email string) bool
- func ValidationPass(pass string) bool
- func ValidationPhonNumber(num string) bool
- func ValidationUUID(uuid string) bool
- func ValidationWord(w string) bool
- func ValidationWorkspaceName(ws string) bool
Constants ¶
View Source
const ( K8S_NAME_PATTERN = `^[a-z]([-a-z0-9]*[a-z0-9])?$` K8S_DOMAIN_PATTERN = `^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,20}$` )
Variables ¶
Functions ¶
func CheckNewPassRequest ¶
func CheckResetPassRequest ¶
func CheckSignupRequest ¶
func CheckTokenRequest ¶
func CheckWorkspaceName ¶
func K8sCheckDomain ¶
func K8sCheckName ¶
Kubernetes namespace name must match this regular expression: ^[a-z]([-a-z0-9]*[a-z0-9])?$ - Must start with a lowercase letter or digit. - Can contain lowercase letters, digits, and dashes. - Must end with a lowercase letter or digit. - Can be up to 63 characters long.
func MongoIndexValidate ¶
func ValidationAppName ¶
func ValidationCodeNumber ¶
func ValidationCompanyName ¶
func ValidationDomain ¶
func ValidationEmail ¶
func ValidationPass ¶
func ValidationPhonNumber ¶
func ValidationUUID ¶
func ValidationWord ¶
func ValidationWorkspaceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.