Documentation ¶
Index ¶
Constants ¶
View Source
const DNS1123NameMaximumLength = 63
Variables ¶
View Source
var ( // Maximum Length for compliant username is limited to 20 characters such that the result namespace of the type "<compliantUsername>-<ns_suffix>" is less than 30 characters, to be dns compliant. // With the AppStudio tier the longest suffix is "-tenant", which is 7 characters, but with subspaces <ns_suffix> is of type "<generatedsuffix(5chars)>-env" making it the longer suffix of 10 chars. // Thus the maximum length of compliantUsername should be 30-10 = 20 chars. MaxLength = 20 )
Functions ¶
func EncodeUserIdentifier ¶
EncodeUserIdentifier transforms a subject value (the user's username) to make it DNS-1123 compliant, by removing invalid characters, trimming the length and prefixing with a CRC32 checksum if required. ### WARNING ### changing this function will cause breakage, as it is used to lookup existing UserSignup resources. If a change is absolutely required, then all existing UserSignup instances must be migrated to the new value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.