mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
711 lines
27 KiB
Go
711 lines
27 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package authsession
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"github.com/dexidp/dex/storage/ent/db/predicate"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// IDEqualFold applies the EqualFold predicate on the ID field.
|
|
func IDEqualFold(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldID, id))
|
|
}
|
|
|
|
// IDContainsFold applies the ContainsFold predicate on the ID field.
|
|
func IDContainsFold(id string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldID, id))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// ConnectorID applies equality check predicate on the "connector_id" field. It's identical to ConnectorIDEQ.
|
|
func ConnectorID(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldConnectorID, v))
|
|
}
|
|
|
|
// Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
|
|
func Nonce(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldNonce, v))
|
|
}
|
|
|
|
// ClientStates applies equality check predicate on the "client_states" field. It's identical to ClientStatesEQ.
|
|
func ClientStates(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldClientStates, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// LastActivity applies equality check predicate on the "last_activity" field. It's identical to LastActivityEQ.
|
|
func LastActivity(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldLastActivity, v))
|
|
}
|
|
|
|
// IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
|
|
func IPAddress(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldIPAddress, v))
|
|
}
|
|
|
|
// UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
|
|
func UserAgent(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldUserAgent, v))
|
|
}
|
|
|
|
// AbsoluteExpiry applies equality check predicate on the "absolute_expiry" field. It's identical to AbsoluteExpiryEQ.
|
|
func AbsoluteExpiry(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// IdleExpiry applies equality check predicate on the "idle_expiry" field. It's identical to IdleExpiryEQ.
|
|
func IdleExpiry(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// ConnectorData applies equality check predicate on the "connector_data" field. It's identical to ConnectorDataEQ.
|
|
func ConnectorData(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldConnectorData, v))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDGT applies the GT predicate on the "user_id" field.
|
|
func UserIDGT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDGTE applies the GTE predicate on the "user_id" field.
|
|
func UserIDGTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLT applies the LT predicate on the "user_id" field.
|
|
func UserIDLT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDLTE applies the LTE predicate on the "user_id" field.
|
|
func UserIDLTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDContains applies the Contains predicate on the "user_id" field.
|
|
func UserIDContains(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContains(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
|
|
func UserIDHasPrefix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasPrefix(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
|
|
func UserIDHasSuffix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasSuffix(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
|
|
func UserIDEqualFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
|
|
func UserIDContainsFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldUserID, v))
|
|
}
|
|
|
|
// ConnectorIDEQ applies the EQ predicate on the "connector_id" field.
|
|
func ConnectorIDEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDNEQ applies the NEQ predicate on the "connector_id" field.
|
|
func ConnectorIDNEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDIn applies the In predicate on the "connector_id" field.
|
|
func ConnectorIDIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldConnectorID, vs...))
|
|
}
|
|
|
|
// ConnectorIDNotIn applies the NotIn predicate on the "connector_id" field.
|
|
func ConnectorIDNotIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldConnectorID, vs...))
|
|
}
|
|
|
|
// ConnectorIDGT applies the GT predicate on the "connector_id" field.
|
|
func ConnectorIDGT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDGTE applies the GTE predicate on the "connector_id" field.
|
|
func ConnectorIDGTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDLT applies the LT predicate on the "connector_id" field.
|
|
func ConnectorIDLT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDLTE applies the LTE predicate on the "connector_id" field.
|
|
func ConnectorIDLTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDContains applies the Contains predicate on the "connector_id" field.
|
|
func ConnectorIDContains(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContains(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDHasPrefix applies the HasPrefix predicate on the "connector_id" field.
|
|
func ConnectorIDHasPrefix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasPrefix(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDHasSuffix applies the HasSuffix predicate on the "connector_id" field.
|
|
func ConnectorIDHasSuffix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasSuffix(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDEqualFold applies the EqualFold predicate on the "connector_id" field.
|
|
func ConnectorIDEqualFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldConnectorID, v))
|
|
}
|
|
|
|
// ConnectorIDContainsFold applies the ContainsFold predicate on the "connector_id" field.
|
|
func ConnectorIDContainsFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldConnectorID, v))
|
|
}
|
|
|
|
// NonceEQ applies the EQ predicate on the "nonce" field.
|
|
func NonceEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldNonce, v))
|
|
}
|
|
|
|
// NonceNEQ applies the NEQ predicate on the "nonce" field.
|
|
func NonceNEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldNonce, v))
|
|
}
|
|
|
|
// NonceIn applies the In predicate on the "nonce" field.
|
|
func NonceIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldNonce, vs...))
|
|
}
|
|
|
|
// NonceNotIn applies the NotIn predicate on the "nonce" field.
|
|
func NonceNotIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldNonce, vs...))
|
|
}
|
|
|
|
// NonceGT applies the GT predicate on the "nonce" field.
|
|
func NonceGT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldNonce, v))
|
|
}
|
|
|
|
// NonceGTE applies the GTE predicate on the "nonce" field.
|
|
func NonceGTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldNonce, v))
|
|
}
|
|
|
|
// NonceLT applies the LT predicate on the "nonce" field.
|
|
func NonceLT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldNonce, v))
|
|
}
|
|
|
|
// NonceLTE applies the LTE predicate on the "nonce" field.
|
|
func NonceLTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldNonce, v))
|
|
}
|
|
|
|
// NonceContains applies the Contains predicate on the "nonce" field.
|
|
func NonceContains(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContains(FieldNonce, v))
|
|
}
|
|
|
|
// NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.
|
|
func NonceHasPrefix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasPrefix(FieldNonce, v))
|
|
}
|
|
|
|
// NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.
|
|
func NonceHasSuffix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasSuffix(FieldNonce, v))
|
|
}
|
|
|
|
// NonceEqualFold applies the EqualFold predicate on the "nonce" field.
|
|
func NonceEqualFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldNonce, v))
|
|
}
|
|
|
|
// NonceContainsFold applies the ContainsFold predicate on the "nonce" field.
|
|
func NonceContainsFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldNonce, v))
|
|
}
|
|
|
|
// ClientStatesEQ applies the EQ predicate on the "client_states" field.
|
|
func ClientStatesEQ(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldClientStates, v))
|
|
}
|
|
|
|
// ClientStatesNEQ applies the NEQ predicate on the "client_states" field.
|
|
func ClientStatesNEQ(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldClientStates, v))
|
|
}
|
|
|
|
// ClientStatesIn applies the In predicate on the "client_states" field.
|
|
func ClientStatesIn(vs ...[]byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldClientStates, vs...))
|
|
}
|
|
|
|
// ClientStatesNotIn applies the NotIn predicate on the "client_states" field.
|
|
func ClientStatesNotIn(vs ...[]byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldClientStates, vs...))
|
|
}
|
|
|
|
// ClientStatesGT applies the GT predicate on the "client_states" field.
|
|
func ClientStatesGT(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldClientStates, v))
|
|
}
|
|
|
|
// ClientStatesGTE applies the GTE predicate on the "client_states" field.
|
|
func ClientStatesGTE(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldClientStates, v))
|
|
}
|
|
|
|
// ClientStatesLT applies the LT predicate on the "client_states" field.
|
|
func ClientStatesLT(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldClientStates, v))
|
|
}
|
|
|
|
// ClientStatesLTE applies the LTE predicate on the "client_states" field.
|
|
func ClientStatesLTE(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldClientStates, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// LastActivityEQ applies the EQ predicate on the "last_activity" field.
|
|
func LastActivityEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldLastActivity, v))
|
|
}
|
|
|
|
// LastActivityNEQ applies the NEQ predicate on the "last_activity" field.
|
|
func LastActivityNEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldLastActivity, v))
|
|
}
|
|
|
|
// LastActivityIn applies the In predicate on the "last_activity" field.
|
|
func LastActivityIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldLastActivity, vs...))
|
|
}
|
|
|
|
// LastActivityNotIn applies the NotIn predicate on the "last_activity" field.
|
|
func LastActivityNotIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldLastActivity, vs...))
|
|
}
|
|
|
|
// LastActivityGT applies the GT predicate on the "last_activity" field.
|
|
func LastActivityGT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldLastActivity, v))
|
|
}
|
|
|
|
// LastActivityGTE applies the GTE predicate on the "last_activity" field.
|
|
func LastActivityGTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldLastActivity, v))
|
|
}
|
|
|
|
// LastActivityLT applies the LT predicate on the "last_activity" field.
|
|
func LastActivityLT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldLastActivity, v))
|
|
}
|
|
|
|
// LastActivityLTE applies the LTE predicate on the "last_activity" field.
|
|
func LastActivityLTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldLastActivity, v))
|
|
}
|
|
|
|
// IPAddressEQ applies the EQ predicate on the "ip_address" field.
|
|
func IPAddressEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
|
|
func IPAddressNEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressIn applies the In predicate on the "ip_address" field.
|
|
func IPAddressIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldIPAddress, vs...))
|
|
}
|
|
|
|
// IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
|
|
func IPAddressNotIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldIPAddress, vs...))
|
|
}
|
|
|
|
// IPAddressGT applies the GT predicate on the "ip_address" field.
|
|
func IPAddressGT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressGTE applies the GTE predicate on the "ip_address" field.
|
|
func IPAddressGTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressLT applies the LT predicate on the "ip_address" field.
|
|
func IPAddressLT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressLTE applies the LTE predicate on the "ip_address" field.
|
|
func IPAddressLTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressContains applies the Contains predicate on the "ip_address" field.
|
|
func IPAddressContains(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContains(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
|
|
func IPAddressHasPrefix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasPrefix(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
|
|
func IPAddressHasSuffix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasSuffix(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
|
|
func IPAddressEqualFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldIPAddress, v))
|
|
}
|
|
|
|
// IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
|
|
func IPAddressContainsFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldIPAddress, v))
|
|
}
|
|
|
|
// UserAgentEQ applies the EQ predicate on the "user_agent" field.
|
|
func UserAgentEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
|
|
func UserAgentNEQ(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentIn applies the In predicate on the "user_agent" field.
|
|
func UserAgentIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldUserAgent, vs...))
|
|
}
|
|
|
|
// UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
|
|
func UserAgentNotIn(vs ...string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldUserAgent, vs...))
|
|
}
|
|
|
|
// UserAgentGT applies the GT predicate on the "user_agent" field.
|
|
func UserAgentGT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentGTE applies the GTE predicate on the "user_agent" field.
|
|
func UserAgentGTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentLT applies the LT predicate on the "user_agent" field.
|
|
func UserAgentLT(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentLTE applies the LTE predicate on the "user_agent" field.
|
|
func UserAgentLTE(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentContains applies the Contains predicate on the "user_agent" field.
|
|
func UserAgentContains(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContains(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
|
|
func UserAgentHasPrefix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasPrefix(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
|
|
func UserAgentHasSuffix(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldHasSuffix(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
|
|
func UserAgentEqualFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEqualFold(FieldUserAgent, v))
|
|
}
|
|
|
|
// UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
|
|
func UserAgentContainsFold(v string) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldContainsFold(FieldUserAgent, v))
|
|
}
|
|
|
|
// AbsoluteExpiryEQ applies the EQ predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// AbsoluteExpiryNEQ applies the NEQ predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryNEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// AbsoluteExpiryIn applies the In predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldAbsoluteExpiry, vs...))
|
|
}
|
|
|
|
// AbsoluteExpiryNotIn applies the NotIn predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryNotIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldAbsoluteExpiry, vs...))
|
|
}
|
|
|
|
// AbsoluteExpiryGT applies the GT predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryGT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// AbsoluteExpiryGTE applies the GTE predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryGTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// AbsoluteExpiryLT applies the LT predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryLT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// AbsoluteExpiryLTE applies the LTE predicate on the "absolute_expiry" field.
|
|
func AbsoluteExpiryLTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldAbsoluteExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryEQ applies the EQ predicate on the "idle_expiry" field.
|
|
func IdleExpiryEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryNEQ applies the NEQ predicate on the "idle_expiry" field.
|
|
func IdleExpiryNEQ(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryIn applies the In predicate on the "idle_expiry" field.
|
|
func IdleExpiryIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldIdleExpiry, vs...))
|
|
}
|
|
|
|
// IdleExpiryNotIn applies the NotIn predicate on the "idle_expiry" field.
|
|
func IdleExpiryNotIn(vs ...time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldIdleExpiry, vs...))
|
|
}
|
|
|
|
// IdleExpiryGT applies the GT predicate on the "idle_expiry" field.
|
|
func IdleExpiryGT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryGTE applies the GTE predicate on the "idle_expiry" field.
|
|
func IdleExpiryGTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryLT applies the LT predicate on the "idle_expiry" field.
|
|
func IdleExpiryLT(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// IdleExpiryLTE applies the LTE predicate on the "idle_expiry" field.
|
|
func IdleExpiryLTE(v time.Time) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldIdleExpiry, v))
|
|
}
|
|
|
|
// ConnectorDataEQ applies the EQ predicate on the "connector_data" field.
|
|
func ConnectorDataEQ(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldEQ(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataNEQ applies the NEQ predicate on the "connector_data" field.
|
|
func ConnectorDataNEQ(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNEQ(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataIn applies the In predicate on the "connector_data" field.
|
|
func ConnectorDataIn(vs ...[]byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIn(FieldConnectorData, vs...))
|
|
}
|
|
|
|
// ConnectorDataNotIn applies the NotIn predicate on the "connector_data" field.
|
|
func ConnectorDataNotIn(vs ...[]byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotIn(FieldConnectorData, vs...))
|
|
}
|
|
|
|
// ConnectorDataGT applies the GT predicate on the "connector_data" field.
|
|
func ConnectorDataGT(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGT(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataGTE applies the GTE predicate on the "connector_data" field.
|
|
func ConnectorDataGTE(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldGTE(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataLT applies the LT predicate on the "connector_data" field.
|
|
func ConnectorDataLT(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLT(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataLTE applies the LTE predicate on the "connector_data" field.
|
|
func ConnectorDataLTE(v []byte) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldLTE(FieldConnectorData, v))
|
|
}
|
|
|
|
// ConnectorDataIsNil applies the IsNil predicate on the "connector_data" field.
|
|
func ConnectorDataIsNil() predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldIsNull(FieldConnectorData))
|
|
}
|
|
|
|
// ConnectorDataNotNil applies the NotNil predicate on the "connector_data" field.
|
|
func ConnectorDataNotNil() predicate.AuthSession {
|
|
return predicate.AuthSession(sql.FieldNotNull(FieldConnectorData))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.AuthSession) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.AuthSession) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.AuthSession) predicate.AuthSession {
|
|
return predicate.AuthSession(sql.NotPredicates(p))
|
|
}
|