Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AuthMethodEQ(v AuthMethod) predicate.User
- func AuthMethodIn(vs ...AuthMethod) predicate.User
- func AuthMethodNEQ(v AuthMethod) predicate.User
- func AuthMethodNotIn(vs ...AuthMethod) predicate.User
- func AuthMethodValidator(am AuthMethod) error
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameIsNil() predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func DisplayNameNotNil() predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func FailedLoginCount(v uint8) predicate.User
- func FailedLoginCountEQ(v uint8) predicate.User
- func FailedLoginCountGT(v uint8) predicate.User
- func FailedLoginCountGTE(v uint8) predicate.User
- func FailedLoginCountIn(vs ...uint8) predicate.User
- func FailedLoginCountLT(v uint8) predicate.User
- func FailedLoginCountLTE(v uint8) predicate.User
- func FailedLoginCountNEQ(v uint8) predicate.User
- func FailedLoginCountNotIn(vs ...uint8) predicate.User
- func HasAPIKeys() predicate.User
- func HasAPIKeysWith(preds ...predicate.ApiKey) predicate.User
- func HasOidcIdentities() predicate.User
- func HasOidcIdentitiesWith(preds ...predicate.OIDCIdentity) predicate.User
- func HasRequests() predicate.User
- func HasRequestsWith(preds ...predicate.Request) predicate.User
- func HasSessions() predicate.User
- func HasSessionsWith(preds ...predicate.Session) predicate.User
- func ID(id uint32) predicate.User
- func IDEQ(id uint32) predicate.User
- func IDGT(id uint32) predicate.User
- func IDGTE(id uint32) predicate.User
- func IDIn(ids ...uint32) predicate.User
- func IDLT(id uint32) predicate.User
- func IDLTE(id uint32) predicate.User
- func IDNEQ(id uint32) predicate.User
- func IDNotIn(ids ...uint32) predicate.User
- func LastFailedLoginAt(v time.Time) predicate.User
- func LastFailedLoginAtEQ(v time.Time) predicate.User
- func LastFailedLoginAtGT(v time.Time) predicate.User
- func LastFailedLoginAtGTE(v time.Time) predicate.User
- func LastFailedLoginAtIn(vs ...time.Time) predicate.User
- func LastFailedLoginAtIsNil() predicate.User
- func LastFailedLoginAtLT(v time.Time) predicate.User
- func LastFailedLoginAtLTE(v time.Time) predicate.User
- func LastFailedLoginAtNEQ(v time.Time) predicate.User
- func LastFailedLoginAtNotIn(vs ...time.Time) predicate.User
- func LastFailedLoginAtNotNil() predicate.User
- func LockedUntil(v time.Time) predicate.User
- func LockedUntilEQ(v time.Time) predicate.User
- func LockedUntilGT(v time.Time) predicate.User
- func LockedUntilGTE(v time.Time) predicate.User
- func LockedUntilIn(vs ...time.Time) predicate.User
- func LockedUntilIsNil() predicate.User
- func LockedUntilLT(v time.Time) predicate.User
- func LockedUntilLTE(v time.Time) predicate.User
- func LockedUntilNEQ(v time.Time) predicate.User
- func LockedUntilNotIn(vs ...time.Time) predicate.User
- func LockedUntilNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PasswordHash(v string) predicate.User
- func PasswordHashContains(v string) predicate.User
- func PasswordHashContainsFold(v string) predicate.User
- func PasswordHashEQ(v string) predicate.User
- func PasswordHashEqualFold(v string) predicate.User
- func PasswordHashGT(v string) predicate.User
- func PasswordHashGTE(v string) predicate.User
- func PasswordHashHasPrefix(v string) predicate.User
- func PasswordHashHasSuffix(v string) predicate.User
- func PasswordHashIn(vs ...string) predicate.User
- func PasswordHashIsNil() predicate.User
- func PasswordHashLT(v string) predicate.User
- func PasswordHashLTE(v string) predicate.User
- func PasswordHashNEQ(v string) predicate.User
- func PasswordHashNotIn(vs ...string) predicate.User
- func PasswordHashNotNil() predicate.User
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type AuthMethod
- type OrderOption
- func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuthMethod(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFailedLoginCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastFailedLoginAt(opts ...sql.OrderTermOption) OrderOption
- func ByLockedUntil(opts ...sql.OrderTermOption) OrderOption
- func ByOidcIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOidcIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
- func ByRequests(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRequestsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- type Role
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldAuthMethod holds the string denoting the auth_method field in the database. FieldAuthMethod = "auth_method" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldFailedLoginCount holds the string denoting the failed_login_count field in the database. FieldFailedLoginCount = "failed_login_count" // FieldLastFailedLoginAt holds the string denoting the last_failed_login_at field in the database. FieldLastFailedLoginAt = "last_failed_login_at" // FieldLockedUntil holds the string denoting the locked_until field in the database. FieldLockedUntil = "locked_until" // EdgeAPIKeys holds the string denoting the api_keys edge name in mutations. EdgeAPIKeys = "api_keys" // EdgeOidcIdentities holds the string denoting the oidc_identities edge name in mutations. EdgeOidcIdentities = "oidc_identities" // EdgeRequests holds the string denoting the requests edge name in mutations. EdgeRequests = "requests" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // Table holds the table name of the user in the database. Table = "users" // APIKeysTable is the table that holds the api_keys relation/edge. APIKeysTable = "api_keys" // APIKeysInverseTable is the table name for the ApiKey entity. // It exists in this package in order to avoid circular dependency with the "apikey" package. APIKeysInverseTable = "api_keys" // APIKeysColumn is the table column denoting the api_keys relation/edge. APIKeysColumn = "user_api_keys" // OidcIdentitiesTable is the table that holds the oidc_identities relation/edge. OidcIdentitiesTable = "oidc_identities" // OidcIdentitiesInverseTable is the table name for the OIDCIdentity entity. // It exists in this package in order to avoid circular dependency with the "oidcidentity" package. OidcIdentitiesInverseTable = "oidc_identities" // OidcIdentitiesColumn is the table column denoting the oidc_identities relation/edge. OidcIdentitiesColumn = "user_oidc_identities" // RequestsTable is the table that holds the requests relation/edge. RequestsTable = "requests" // RequestsInverseTable is the table name for the Request entity. // It exists in this package in order to avoid circular dependency with the "request" package. RequestsInverseTable = "requests" // RequestsColumn is the table column denoting the requests relation/edge. RequestsColumn = "user_requests" // SessionsTable is the table that holds the sessions relation/edge. SessionsTable = "sessions" // SessionsInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionsInverseTable = "sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "user_sessions" )
const DefaultAuthMethod = AuthMethodLocal
AuthMethodLocal is the default value of the AuthMethod enum.
const DefaultRole = RoleMember
RoleMember is the default value of the Role enum.
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultFailedLoginCount holds the default value on creation for the "failed_login_count" field. DefaultFailedLoginCount uint8 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldEmail, FieldPasswordHash, FieldRole, FieldAuthMethod, FieldDisplayName, FieldFailedLoginCount, FieldLastFailedLoginAt, FieldLockedUntil, }
Columns holds all SQL columns for user fields.
Functions ¶
func AuthMethodEQ ¶
func AuthMethodEQ(v AuthMethod) predicate.User
AuthMethodEQ applies the EQ predicate on the "auth_method" field.
func AuthMethodIn ¶
func AuthMethodIn(vs ...AuthMethod) predicate.User
AuthMethodIn applies the In predicate on the "auth_method" field.
func AuthMethodNEQ ¶
func AuthMethodNEQ(v AuthMethod) predicate.User
AuthMethodNEQ applies the NEQ predicate on the "auth_method" field.
func AuthMethodNotIn ¶
func AuthMethodNotIn(vs ...AuthMethod) predicate.User
AuthMethodNotIn applies the NotIn predicate on the "auth_method" field.
func AuthMethodValidator ¶
func AuthMethodValidator(am AuthMethod) error
AuthMethodValidator is a validator for the "auth_method" field enum values. It is called by the builders before save.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func FailedLoginCount ¶
FailedLoginCount applies equality check predicate on the "failed_login_count" field. It's identical to FailedLoginCountEQ.
func FailedLoginCountEQ ¶
FailedLoginCountEQ applies the EQ predicate on the "failed_login_count" field.
func FailedLoginCountGT ¶
FailedLoginCountGT applies the GT predicate on the "failed_login_count" field.
func FailedLoginCountGTE ¶
FailedLoginCountGTE applies the GTE predicate on the "failed_login_count" field.
func FailedLoginCountIn ¶
FailedLoginCountIn applies the In predicate on the "failed_login_count" field.
func FailedLoginCountLT ¶
FailedLoginCountLT applies the LT predicate on the "failed_login_count" field.
func FailedLoginCountLTE ¶
FailedLoginCountLTE applies the LTE predicate on the "failed_login_count" field.
func FailedLoginCountNEQ ¶
FailedLoginCountNEQ applies the NEQ predicate on the "failed_login_count" field.
func FailedLoginCountNotIn ¶
FailedLoginCountNotIn applies the NotIn predicate on the "failed_login_count" field.
func HasAPIKeys ¶
HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
func HasAPIKeysWith ¶
HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).
func HasOidcIdentities ¶
HasOidcIdentities applies the HasEdge predicate on the "oidc_identities" edge.
func HasOidcIdentitiesWith ¶
func HasOidcIdentitiesWith(preds ...predicate.OIDCIdentity) predicate.User
HasOidcIdentitiesWith applies the HasEdge predicate on the "oidc_identities" edge with a given conditions (other predicates).
func HasRequests ¶
HasRequests applies the HasEdge predicate on the "requests" edge.
func HasRequestsWith ¶
HasRequestsWith applies the HasEdge predicate on the "requests" edge with a given conditions (other predicates).
func HasSessions ¶
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func LastFailedLoginAt ¶
LastFailedLoginAt applies equality check predicate on the "last_failed_login_at" field. It's identical to LastFailedLoginAtEQ.
func LastFailedLoginAtEQ ¶
LastFailedLoginAtEQ applies the EQ predicate on the "last_failed_login_at" field.
func LastFailedLoginAtGT ¶
LastFailedLoginAtGT applies the GT predicate on the "last_failed_login_at" field.
func LastFailedLoginAtGTE ¶
LastFailedLoginAtGTE applies the GTE predicate on the "last_failed_login_at" field.
func LastFailedLoginAtIn ¶
LastFailedLoginAtIn applies the In predicate on the "last_failed_login_at" field.
func LastFailedLoginAtIsNil ¶
LastFailedLoginAtIsNil applies the IsNil predicate on the "last_failed_login_at" field.
func LastFailedLoginAtLT ¶
LastFailedLoginAtLT applies the LT predicate on the "last_failed_login_at" field.
func LastFailedLoginAtLTE ¶
LastFailedLoginAtLTE applies the LTE predicate on the "last_failed_login_at" field.
func LastFailedLoginAtNEQ ¶
LastFailedLoginAtNEQ applies the NEQ predicate on the "last_failed_login_at" field.
func LastFailedLoginAtNotIn ¶
LastFailedLoginAtNotIn applies the NotIn predicate on the "last_failed_login_at" field.
func LastFailedLoginAtNotNil ¶
LastFailedLoginAtNotNil applies the NotNil predicate on the "last_failed_login_at" field.
func LockedUntil ¶
LockedUntil applies equality check predicate on the "locked_until" field. It's identical to LockedUntilEQ.
func LockedUntilEQ ¶
LockedUntilEQ applies the EQ predicate on the "locked_until" field.
func LockedUntilGT ¶
LockedUntilGT applies the GT predicate on the "locked_until" field.
func LockedUntilGTE ¶
LockedUntilGTE applies the GTE predicate on the "locked_until" field.
func LockedUntilIn ¶
LockedUntilIn applies the In predicate on the "locked_until" field.
func LockedUntilIsNil ¶
LockedUntilIsNil applies the IsNil predicate on the "locked_until" field.
func LockedUntilLT ¶
LockedUntilLT applies the LT predicate on the "locked_until" field.
func LockedUntilLTE ¶
LockedUntilLTE applies the LTE predicate on the "locked_until" field.
func LockedUntilNEQ ¶
LockedUntilNEQ applies the NEQ predicate on the "locked_until" field.
func LockedUntilNotIn ¶
LockedUntilNotIn applies the NotIn predicate on the "locked_until" field.
func LockedUntilNotNil ¶
LockedUntilNotNil applies the NotNil predicate on the "locked_until" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashIsNil ¶
PasswordHashIsNil applies the IsNil predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func PasswordHashNotNil ¶
PasswordHashNotNil applies the NotNil predicate on the "password_hash" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type AuthMethod ¶
type AuthMethod string
AuthMethod defines the type for the "auth_method" enum field.
const ( AuthMethodLocal AuthMethod = "local" AuthMethodOidc AuthMethod = "oidc" AuthMethodBoth AuthMethod = "both" )
AuthMethod values.
func (AuthMethod) String ¶
func (am AuthMethod) String() string
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAPIKeys ¶
func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAPIKeys orders the results by api_keys terms.
func ByAPIKeysCount ¶
func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
ByAPIKeysCount orders the results by api_keys count.
func ByAuthMethod ¶
func ByAuthMethod(opts ...sql.OrderTermOption) OrderOption
ByAuthMethod orders the results by the auth_method field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFailedLoginCount ¶
func ByFailedLoginCount(opts ...sql.OrderTermOption) OrderOption
ByFailedLoginCount orders the results by the failed_login_count field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastFailedLoginAt ¶
func ByLastFailedLoginAt(opts ...sql.OrderTermOption) OrderOption
ByLastFailedLoginAt orders the results by the last_failed_login_at field.
func ByLockedUntil ¶
func ByLockedUntil(opts ...sql.OrderTermOption) OrderOption
ByLockedUntil orders the results by the locked_until field.
func ByOidcIdentities ¶
func ByOidcIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOidcIdentities orders the results by oidc_identities terms.
func ByOidcIdentitiesCount ¶
func ByOidcIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
ByOidcIdentitiesCount orders the results by oidc_identities count.
func ByPasswordHash ¶
func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
ByPasswordHash orders the results by the password_hash field.
func ByRequests ¶
func ByRequests(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRequests orders the results by requests terms.
func ByRequestsCount ¶
func ByRequestsCount(opts ...sql.OrderTermOption) OrderOption
ByRequestsCount orders the results by requests count.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySessions ¶
func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySessions orders the results by sessions terms.
func BySessionsCount ¶
func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
BySessionsCount orders the results by sessions count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.