Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSystemGenerated ¶
func NewSystemGenerated() string
NewSystemGenerated returns a new system-generated resource ID.
func NewSystemGeneratedBase32 ¶ added in v0.21.0
func NewSystemGeneratedBase32() string
NewSystemGenerated returns a new system-generated resource ID encoded as base32 lowercase.
func ValidateUserSettable ¶
ValidateUserSettable validates a user-settable resource ID.
From https://google.aip.dev/122#resource-id-segments:
User-settable resource IDs should conform to RFC-1034; which restricts to letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. Additionally, user-settable resource IDs should restrict letters to lower-case.
User-settable IDs should not be permitted to be a UUID (or any value that syntactically appears to be a UUID).
Types ¶
This section is empty.