Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + const AdminRole + const AdminRoleID + const EmptyRole + const EmptyRoleID + const NodeUser + const NodeUserID + const NoneRole + const PublicRole + const PublicRoleID + const RootUser + const RootUserID + const TestUser + var ErrUsernameEmpty = errors.WithHint(errors.New("username is empty"), usernameHelp) + var ErrUsernameInvalid = errors.WithHint(errors.New("username is invalid"), usernameHelp) + var ErrUsernameNotNormalized = errors.WithHint(errors.New("username is not normalized"), ...) + var ErrUsernameTooLong = errors.WithHint(errors.New("username is too long"), usernameHelp) + func GetDefaultRoleNameToID(username SQLUsername) catid.RoleID + type Purpose bool + const PurposeCreation + const PurposeValidation + type SQLUsername struct + func AdminRoleName() SQLUsername + func EmptyRoleName() SQLUsername + func MakeSQLUsernameFromPreNormalizedString(u string) SQLUsername + func MakeSQLUsernameFromPreNormalizedStringChecked(u string) (SQLUsername, error) + func MakeSQLUsernameFromUserInput(u string, purpose Purpose) (res SQLUsername, err error) + func NodeUserName() SQLUsername + func PublicRoleName() SQLUsername + func RootUserName() SQLUsername + func TestUserName() SQLUsername + func (s SQLUsername) EncodeProto() SQLUsernameProto + func (s SQLUsername) Format(fs fmt.State, verb rune) + func (s SQLUsername) IsAdminRole() bool + func (s SQLUsername) IsEmptyRole() bool + func (s SQLUsername) IsNodeUser() bool + func (s SQLUsername) IsNoneRole() bool + func (s SQLUsername) IsPublicRole() bool + func (s SQLUsername) IsReserved() bool + func (s SQLUsername) IsRootUser() bool + func (s SQLUsername) LessThan(u SQLUsername) bool + func (s SQLUsername) Normalized() string + func (s SQLUsername) SQLIdentifier() string + func (s SQLUsername) Undefined() bool + func (s SQLUsername) ValidateForCreation() error + type SQLUsernameProto string + func (s SQLUsernameProto) Decode() SQLUsername