mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
498 lines
18 KiB
498 lines
18 KiB
// Code generated by ent, DO NOT EDIT. |
|
|
|
package password |
|
|
|
import ( |
|
"entgo.io/ent/dialect/sql" |
|
"github.com/dexidp/dex/storage/ent/db/predicate" |
|
) |
|
|
|
// ID filters vertices based on their ID field. |
|
func ID(id int) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDEQ applies the EQ predicate on the ID field. |
|
func IDEQ(id int) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldID, id)) |
|
} |
|
|
|
// IDNEQ applies the NEQ predicate on the ID field. |
|
func IDNEQ(id int) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldID, id)) |
|
} |
|
|
|
// IDIn applies the In predicate on the ID field. |
|
func IDIn(ids ...int) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldID, ids...)) |
|
} |
|
|
|
// IDNotIn applies the NotIn predicate on the ID field. |
|
func IDNotIn(ids ...int) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldID, ids...)) |
|
} |
|
|
|
// IDGT applies the GT predicate on the ID field. |
|
func IDGT(id int) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldID, id)) |
|
} |
|
|
|
// IDGTE applies the GTE predicate on the ID field. |
|
func IDGTE(id int) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldID, id)) |
|
} |
|
|
|
// IDLT applies the LT predicate on the ID field. |
|
func IDLT(id int) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldID, id)) |
|
} |
|
|
|
// IDLTE applies the LTE predicate on the ID field. |
|
func IDLTE(id int) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldID, id)) |
|
} |
|
|
|
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ. |
|
func Email(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldEmail, v)) |
|
} |
|
|
|
// Hash applies equality check predicate on the "hash" field. It's identical to HashEQ. |
|
func Hash(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldHash, v)) |
|
} |
|
|
|
// Username applies equality check predicate on the "username" field. It's identical to UsernameEQ. |
|
func Username(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldUsername, v)) |
|
} |
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ. |
|
func Name(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldName, v)) |
|
} |
|
|
|
// PreferredUsername applies equality check predicate on the "preferred_username" field. It's identical to PreferredUsernameEQ. |
|
func PreferredUsername(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldPreferredUsername, v)) |
|
} |
|
|
|
// EmailVerified applies equality check predicate on the "email_verified" field. It's identical to EmailVerifiedEQ. |
|
func EmailVerified(v bool) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldEmailVerified, v)) |
|
} |
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. |
|
func UserID(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldUserID, v)) |
|
} |
|
|
|
// EmailEQ applies the EQ predicate on the "email" field. |
|
func EmailEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldEmail, v)) |
|
} |
|
|
|
// EmailNEQ applies the NEQ predicate on the "email" field. |
|
func EmailNEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldEmail, v)) |
|
} |
|
|
|
// EmailIn applies the In predicate on the "email" field. |
|
func EmailIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldEmail, vs...)) |
|
} |
|
|
|
// EmailNotIn applies the NotIn predicate on the "email" field. |
|
func EmailNotIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldEmail, vs...)) |
|
} |
|
|
|
// EmailGT applies the GT predicate on the "email" field. |
|
func EmailGT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldEmail, v)) |
|
} |
|
|
|
// EmailGTE applies the GTE predicate on the "email" field. |
|
func EmailGTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldEmail, v)) |
|
} |
|
|
|
// EmailLT applies the LT predicate on the "email" field. |
|
func EmailLT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldEmail, v)) |
|
} |
|
|
|
// EmailLTE applies the LTE predicate on the "email" field. |
|
func EmailLTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldEmail, v)) |
|
} |
|
|
|
// EmailContains applies the Contains predicate on the "email" field. |
|
func EmailContains(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContains(FieldEmail, v)) |
|
} |
|
|
|
// EmailHasPrefix applies the HasPrefix predicate on the "email" field. |
|
func EmailHasPrefix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasPrefix(FieldEmail, v)) |
|
} |
|
|
|
// EmailHasSuffix applies the HasSuffix predicate on the "email" field. |
|
func EmailHasSuffix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasSuffix(FieldEmail, v)) |
|
} |
|
|
|
// EmailEqualFold applies the EqualFold predicate on the "email" field. |
|
func EmailEqualFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEqualFold(FieldEmail, v)) |
|
} |
|
|
|
// EmailContainsFold applies the ContainsFold predicate on the "email" field. |
|
func EmailContainsFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContainsFold(FieldEmail, v)) |
|
} |
|
|
|
// HashEQ applies the EQ predicate on the "hash" field. |
|
func HashEQ(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldHash, v)) |
|
} |
|
|
|
// HashNEQ applies the NEQ predicate on the "hash" field. |
|
func HashNEQ(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldHash, v)) |
|
} |
|
|
|
// HashIn applies the In predicate on the "hash" field. |
|
func HashIn(vs ...[]byte) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldHash, vs...)) |
|
} |
|
|
|
// HashNotIn applies the NotIn predicate on the "hash" field. |
|
func HashNotIn(vs ...[]byte) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldHash, vs...)) |
|
} |
|
|
|
// HashGT applies the GT predicate on the "hash" field. |
|
func HashGT(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldHash, v)) |
|
} |
|
|
|
// HashGTE applies the GTE predicate on the "hash" field. |
|
func HashGTE(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldHash, v)) |
|
} |
|
|
|
// HashLT applies the LT predicate on the "hash" field. |
|
func HashLT(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldHash, v)) |
|
} |
|
|
|
// HashLTE applies the LTE predicate on the "hash" field. |
|
func HashLTE(v []byte) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldHash, v)) |
|
} |
|
|
|
// UsernameEQ applies the EQ predicate on the "username" field. |
|
func UsernameEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldUsername, v)) |
|
} |
|
|
|
// UsernameNEQ applies the NEQ predicate on the "username" field. |
|
func UsernameNEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldUsername, v)) |
|
} |
|
|
|
// UsernameIn applies the In predicate on the "username" field. |
|
func UsernameIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldUsername, vs...)) |
|
} |
|
|
|
// UsernameNotIn applies the NotIn predicate on the "username" field. |
|
func UsernameNotIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldUsername, vs...)) |
|
} |
|
|
|
// UsernameGT applies the GT predicate on the "username" field. |
|
func UsernameGT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldUsername, v)) |
|
} |
|
|
|
// UsernameGTE applies the GTE predicate on the "username" field. |
|
func UsernameGTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldUsername, v)) |
|
} |
|
|
|
// UsernameLT applies the LT predicate on the "username" field. |
|
func UsernameLT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldUsername, v)) |
|
} |
|
|
|
// UsernameLTE applies the LTE predicate on the "username" field. |
|
func UsernameLTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldUsername, v)) |
|
} |
|
|
|
// UsernameContains applies the Contains predicate on the "username" field. |
|
func UsernameContains(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContains(FieldUsername, v)) |
|
} |
|
|
|
// UsernameHasPrefix applies the HasPrefix predicate on the "username" field. |
|
func UsernameHasPrefix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasPrefix(FieldUsername, v)) |
|
} |
|
|
|
// UsernameHasSuffix applies the HasSuffix predicate on the "username" field. |
|
func UsernameHasSuffix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasSuffix(FieldUsername, v)) |
|
} |
|
|
|
// UsernameEqualFold applies the EqualFold predicate on the "username" field. |
|
func UsernameEqualFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEqualFold(FieldUsername, v)) |
|
} |
|
|
|
// UsernameContainsFold applies the ContainsFold predicate on the "username" field. |
|
func UsernameContainsFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContainsFold(FieldUsername, v)) |
|
} |
|
|
|
// NameEQ applies the EQ predicate on the "name" field. |
|
func NameEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldName, v)) |
|
} |
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field. |
|
func NameNEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldName, v)) |
|
} |
|
|
|
// NameIn applies the In predicate on the "name" field. |
|
func NameIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldName, vs...)) |
|
} |
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field. |
|
func NameNotIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldName, vs...)) |
|
} |
|
|
|
// NameGT applies the GT predicate on the "name" field. |
|
func NameGT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldName, v)) |
|
} |
|
|
|
// NameGTE applies the GTE predicate on the "name" field. |
|
func NameGTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldName, v)) |
|
} |
|
|
|
// NameLT applies the LT predicate on the "name" field. |
|
func NameLT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldName, v)) |
|
} |
|
|
|
// NameLTE applies the LTE predicate on the "name" field. |
|
func NameLTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldName, v)) |
|
} |
|
|
|
// NameContains applies the Contains predicate on the "name" field. |
|
func NameContains(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContains(FieldName, v)) |
|
} |
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field. |
|
func NameHasPrefix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasPrefix(FieldName, v)) |
|
} |
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field. |
|
func NameHasSuffix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasSuffix(FieldName, v)) |
|
} |
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field. |
|
func NameEqualFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEqualFold(FieldName, v)) |
|
} |
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field. |
|
func NameContainsFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContainsFold(FieldName, v)) |
|
} |
|
|
|
// PreferredUsernameEQ applies the EQ predicate on the "preferred_username" field. |
|
func PreferredUsernameEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameNEQ applies the NEQ predicate on the "preferred_username" field. |
|
func PreferredUsernameNEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameIn applies the In predicate on the "preferred_username" field. |
|
func PreferredUsernameIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldPreferredUsername, vs...)) |
|
} |
|
|
|
// PreferredUsernameNotIn applies the NotIn predicate on the "preferred_username" field. |
|
func PreferredUsernameNotIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldPreferredUsername, vs...)) |
|
} |
|
|
|
// PreferredUsernameGT applies the GT predicate on the "preferred_username" field. |
|
func PreferredUsernameGT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameGTE applies the GTE predicate on the "preferred_username" field. |
|
func PreferredUsernameGTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameLT applies the LT predicate on the "preferred_username" field. |
|
func PreferredUsernameLT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameLTE applies the LTE predicate on the "preferred_username" field. |
|
func PreferredUsernameLTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameContains applies the Contains predicate on the "preferred_username" field. |
|
func PreferredUsernameContains(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContains(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameHasPrefix applies the HasPrefix predicate on the "preferred_username" field. |
|
func PreferredUsernameHasPrefix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasPrefix(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameHasSuffix applies the HasSuffix predicate on the "preferred_username" field. |
|
func PreferredUsernameHasSuffix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasSuffix(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameEqualFold applies the EqualFold predicate on the "preferred_username" field. |
|
func PreferredUsernameEqualFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEqualFold(FieldPreferredUsername, v)) |
|
} |
|
|
|
// PreferredUsernameContainsFold applies the ContainsFold predicate on the "preferred_username" field. |
|
func PreferredUsernameContainsFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContainsFold(FieldPreferredUsername, v)) |
|
} |
|
|
|
// EmailVerifiedEQ applies the EQ predicate on the "email_verified" field. |
|
func EmailVerifiedEQ(v bool) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldEmailVerified, v)) |
|
} |
|
|
|
// EmailVerifiedNEQ applies the NEQ predicate on the "email_verified" field. |
|
func EmailVerifiedNEQ(v bool) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldEmailVerified, v)) |
|
} |
|
|
|
// EmailVerifiedIsNil applies the IsNil predicate on the "email_verified" field. |
|
func EmailVerifiedIsNil() predicate.Password { |
|
return predicate.Password(sql.FieldIsNull(FieldEmailVerified)) |
|
} |
|
|
|
// EmailVerifiedNotNil applies the NotNil predicate on the "email_verified" field. |
|
func EmailVerifiedNotNil() predicate.Password { |
|
return predicate.Password(sql.FieldNotNull(FieldEmailVerified)) |
|
} |
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field. |
|
func UserIDEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEQ(FieldUserID, v)) |
|
} |
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field. |
|
func UserIDNEQ(v string) predicate.Password { |
|
return predicate.Password(sql.FieldNEQ(FieldUserID, v)) |
|
} |
|
|
|
// UserIDIn applies the In predicate on the "user_id" field. |
|
func UserIDIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldIn(FieldUserID, vs...)) |
|
} |
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field. |
|
func UserIDNotIn(vs ...string) predicate.Password { |
|
return predicate.Password(sql.FieldNotIn(FieldUserID, vs...)) |
|
} |
|
|
|
// UserIDGT applies the GT predicate on the "user_id" field. |
|
func UserIDGT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGT(FieldUserID, v)) |
|
} |
|
|
|
// UserIDGTE applies the GTE predicate on the "user_id" field. |
|
func UserIDGTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldGTE(FieldUserID, v)) |
|
} |
|
|
|
// UserIDLT applies the LT predicate on the "user_id" field. |
|
func UserIDLT(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLT(FieldUserID, v)) |
|
} |
|
|
|
// UserIDLTE applies the LTE predicate on the "user_id" field. |
|
func UserIDLTE(v string) predicate.Password { |
|
return predicate.Password(sql.FieldLTE(FieldUserID, v)) |
|
} |
|
|
|
// UserIDContains applies the Contains predicate on the "user_id" field. |
|
func UserIDContains(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContains(FieldUserID, v)) |
|
} |
|
|
|
// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field. |
|
func UserIDHasPrefix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasPrefix(FieldUserID, v)) |
|
} |
|
|
|
// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field. |
|
func UserIDHasSuffix(v string) predicate.Password { |
|
return predicate.Password(sql.FieldHasSuffix(FieldUserID, v)) |
|
} |
|
|
|
// UserIDEqualFold applies the EqualFold predicate on the "user_id" field. |
|
func UserIDEqualFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldEqualFold(FieldUserID, v)) |
|
} |
|
|
|
// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field. |
|
func UserIDContainsFold(v string) predicate.Password { |
|
return predicate.Password(sql.FieldContainsFold(FieldUserID, v)) |
|
} |
|
|
|
// GroupsIsNil applies the IsNil predicate on the "groups" field. |
|
func GroupsIsNil() predicate.Password { |
|
return predicate.Password(sql.FieldIsNull(FieldGroups)) |
|
} |
|
|
|
// GroupsNotNil applies the NotNil predicate on the "groups" field. |
|
func GroupsNotNil() predicate.Password { |
|
return predicate.Password(sql.FieldNotNull(FieldGroups)) |
|
} |
|
|
|
// And groups predicates with the AND operator between them. |
|
func And(predicates ...predicate.Password) predicate.Password { |
|
return predicate.Password(sql.AndPredicates(predicates...)) |
|
} |
|
|
|
// Or groups predicates with the OR operator between them. |
|
func Or(predicates ...predicate.Password) predicate.Password { |
|
return predicate.Password(sql.OrPredicates(predicates...)) |
|
} |
|
|
|
// Not applies the not operator on the given predicate. |
|
func Not(p predicate.Password) predicate.Password { |
|
return predicate.Password(sql.NotPredicates(p)) |
|
}
|
|
|