Documentation
¶
Index ¶
- Constants
- Variables
- func Aaguid(v []byte) predicate.Passkey
- func AaguidEQ(v []byte) predicate.Passkey
- func AaguidGT(v []byte) predicate.Passkey
- func AaguidGTE(v []byte) predicate.Passkey
- func AaguidIn(vs ...[]byte) predicate.Passkey
- func AaguidIsNil() predicate.Passkey
- func AaguidLT(v []byte) predicate.Passkey
- func AaguidLTE(v []byte) predicate.Passkey
- func AaguidNEQ(v []byte) predicate.Passkey
- func AaguidNotIn(vs ...[]byte) predicate.Passkey
- func AaguidNotNil() predicate.Passkey
- func And(predicates ...predicate.Passkey) predicate.Passkey
- func AttestationType(v string) predicate.Passkey
- func AttestationTypeContains(v string) predicate.Passkey
- func AttestationTypeContainsFold(v string) predicate.Passkey
- func AttestationTypeEQ(v string) predicate.Passkey
- func AttestationTypeEqualFold(v string) predicate.Passkey
- func AttestationTypeGT(v string) predicate.Passkey
- func AttestationTypeGTE(v string) predicate.Passkey
- func AttestationTypeHasPrefix(v string) predicate.Passkey
- func AttestationTypeHasSuffix(v string) predicate.Passkey
- func AttestationTypeIn(vs ...string) predicate.Passkey
- func AttestationTypeIsNil() predicate.Passkey
- func AttestationTypeLT(v string) predicate.Passkey
- func AttestationTypeLTE(v string) predicate.Passkey
- func AttestationTypeNEQ(v string) predicate.Passkey
- func AttestationTypeNotIn(vs ...string) predicate.Passkey
- func AttestationTypeNotNil() predicate.Passkey
- func BackupEligible(v bool) predicate.Passkey
- func BackupEligibleEQ(v bool) predicate.Passkey
- func BackupEligibleNEQ(v bool) predicate.Passkey
- func BackupState(v bool) predicate.Passkey
- func BackupStateEQ(v bool) predicate.Passkey
- func BackupStateNEQ(v bool) predicate.Passkey
- func CreatedAt(v time.Time) predicate.Passkey
- func CreatedAtEQ(v time.Time) predicate.Passkey
- func CreatedAtGT(v time.Time) predicate.Passkey
- func CreatedAtGTE(v time.Time) predicate.Passkey
- func CreatedAtIn(vs ...time.Time) predicate.Passkey
- func CreatedAtLT(v time.Time) predicate.Passkey
- func CreatedAtLTE(v time.Time) predicate.Passkey
- func CreatedAtNEQ(v time.Time) predicate.Passkey
- func CreatedAtNotIn(vs ...time.Time) predicate.Passkey
- func CredentialID(v []byte) predicate.Passkey
- func CredentialIDEQ(v []byte) predicate.Passkey
- func CredentialIDGT(v []byte) predicate.Passkey
- func CredentialIDGTE(v []byte) predicate.Passkey
- func CredentialIDIn(vs ...[]byte) predicate.Passkey
- func CredentialIDLT(v []byte) predicate.Passkey
- func CredentialIDLTE(v []byte) predicate.Passkey
- func CredentialIDNEQ(v []byte) predicate.Passkey
- func CredentialIDNotIn(vs ...[]byte) predicate.Passkey
- func HasUser() predicate.Passkey
- func HasUserWith(preds ...predicate.User) predicate.Passkey
- func ID(id int64) predicate.Passkey
- func IDEQ(id int64) predicate.Passkey
- func IDGT(id int64) predicate.Passkey
- func IDGTE(id int64) predicate.Passkey
- func IDIn(ids ...int64) predicate.Passkey
- func IDLT(id int64) predicate.Passkey
- func IDLTE(id int64) predicate.Passkey
- func IDNEQ(id int64) predicate.Passkey
- func IDNotIn(ids ...int64) predicate.Passkey
- func LastUsedAt(v time.Time) predicate.Passkey
- func LastUsedAtEQ(v time.Time) predicate.Passkey
- func LastUsedAtGT(v time.Time) predicate.Passkey
- func LastUsedAtGTE(v time.Time) predicate.Passkey
- func LastUsedAtIn(vs ...time.Time) predicate.Passkey
- func LastUsedAtIsNil() predicate.Passkey
- func LastUsedAtLT(v time.Time) predicate.Passkey
- func LastUsedAtLTE(v time.Time) predicate.Passkey
- func LastUsedAtNEQ(v time.Time) predicate.Passkey
- func LastUsedAtNotIn(vs ...time.Time) predicate.Passkey
- func LastUsedAtNotNil() predicate.Passkey
- func Name(v string) predicate.Passkey
- func NameContains(v string) predicate.Passkey
- func NameContainsFold(v string) predicate.Passkey
- func NameEQ(v string) predicate.Passkey
- func NameEqualFold(v string) predicate.Passkey
- func NameGT(v string) predicate.Passkey
- func NameGTE(v string) predicate.Passkey
- func NameHasPrefix(v string) predicate.Passkey
- func NameHasSuffix(v string) predicate.Passkey
- func NameIn(vs ...string) predicate.Passkey
- func NameLT(v string) predicate.Passkey
- func NameLTE(v string) predicate.Passkey
- func NameNEQ(v string) predicate.Passkey
- func NameNotIn(vs ...string) predicate.Passkey
- func Not(p predicate.Passkey) predicate.Passkey
- func Or(predicates ...predicate.Passkey) predicate.Passkey
- func PublicKey(v []byte) predicate.Passkey
- func PublicKeyEQ(v []byte) predicate.Passkey
- func PublicKeyGT(v []byte) predicate.Passkey
- func PublicKeyGTE(v []byte) predicate.Passkey
- func PublicKeyIn(vs ...[]byte) predicate.Passkey
- func PublicKeyLT(v []byte) predicate.Passkey
- func PublicKeyLTE(v []byte) predicate.Passkey
- func PublicKeyNEQ(v []byte) predicate.Passkey
- func PublicKeyNotIn(vs ...[]byte) predicate.Passkey
- func SignCount(v int64) predicate.Passkey
- func SignCountEQ(v int64) predicate.Passkey
- func SignCountGT(v int64) predicate.Passkey
- func SignCountGTE(v int64) predicate.Passkey
- func SignCountIn(vs ...int64) predicate.Passkey
- func SignCountLT(v int64) predicate.Passkey
- func SignCountLTE(v int64) predicate.Passkey
- func SignCountNEQ(v int64) predicate.Passkey
- func SignCountNotIn(vs ...int64) predicate.Passkey
- func TransportsIsNil() predicate.Passkey
- func TransportsNotNil() predicate.Passkey
- func UpdatedAt(v time.Time) predicate.Passkey
- func UpdatedAtEQ(v time.Time) predicate.Passkey
- func UpdatedAtGT(v time.Time) predicate.Passkey
- func UpdatedAtGTE(v time.Time) predicate.Passkey
- func UpdatedAtIn(vs ...time.Time) predicate.Passkey
- func UpdatedAtLT(v time.Time) predicate.Passkey
- func UpdatedAtLTE(v time.Time) predicate.Passkey
- func UpdatedAtNEQ(v time.Time) predicate.Passkey
- func UpdatedAtNotIn(vs ...time.Time) predicate.Passkey
- func UserID(v int64) predicate.Passkey
- func UserIDEQ(v int64) predicate.Passkey
- func UserIDIn(vs ...int64) predicate.Passkey
- func UserIDNEQ(v int64) predicate.Passkey
- func UserIDNotIn(vs ...int64) predicate.Passkey
- func ValidColumn(column string) bool
- type OrderOption
- func ByAttestationType(opts ...sql.OrderTermOption) OrderOption
- func ByBackupEligible(opts ...sql.OrderTermOption) OrderOption
- func ByBackupState(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySignCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the passkey type in the database. Label = "passkey" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCredentialID holds the string denoting the credential_id field in the database. FieldCredentialID = "credential_id" // FieldPublicKey holds the string denoting the public_key field in the database. FieldPublicKey = "public_key" // FieldSignCount holds the string denoting the sign_count field in the database. FieldSignCount = "sign_count" // FieldTransports holds the string denoting the transports field in the database. FieldTransports = "transports" // FieldBackupEligible holds the string denoting the backup_eligible field in the database. FieldBackupEligible = "backup_eligible" // FieldBackupState holds the string denoting the backup_state field in the database. FieldBackupState = "backup_state" // FieldAaguid holds the string denoting the aaguid field in the database. FieldAaguid = "aaguid" // FieldAttestationType holds the string denoting the attestation_type field in the database. FieldAttestationType = "attestation_type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldLastUsedAt holds the string denoting the last_used_at field in the database. FieldLastUsedAt = "last_used_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the passkey in the database. Table = "passkeys" // UserTable is the table that holds the user relation/edge. UserTable = "passkeys" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // CredentialIDValidator is a validator for the "credential_id" field. It is called by the builders before save. CredentialIDValidator func([]byte) error // PublicKeyValidator is a validator for the "public_key" field. It is called by the builders before save. PublicKeyValidator func([]byte) error // DefaultSignCount holds the default value on creation for the "sign_count" field. DefaultSignCount int64 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldCredentialID, FieldPublicKey, FieldSignCount, FieldTransports, FieldBackupEligible, FieldBackupState, FieldAaguid, FieldAttestationType, FieldName, FieldLastUsedAt, }
Columns holds all SQL columns for passkey fields.
Functions ¶
func Aaguid ¶
Aaguid applies equality check predicate on the "aaguid" field. It's identical to AaguidEQ.
func AaguidIsNil ¶
AaguidIsNil applies the IsNil predicate on the "aaguid" field.
func AaguidNotIn ¶
AaguidNotIn applies the NotIn predicate on the "aaguid" field.
func AaguidNotNil ¶
AaguidNotNil applies the NotNil predicate on the "aaguid" field.
func AttestationType ¶
AttestationType applies equality check predicate on the "attestation_type" field. It's identical to AttestationTypeEQ.
func AttestationTypeContains ¶
AttestationTypeContains applies the Contains predicate on the "attestation_type" field.
func AttestationTypeContainsFold ¶
AttestationTypeContainsFold applies the ContainsFold predicate on the "attestation_type" field.
func AttestationTypeEQ ¶
AttestationTypeEQ applies the EQ predicate on the "attestation_type" field.
func AttestationTypeEqualFold ¶
AttestationTypeEqualFold applies the EqualFold predicate on the "attestation_type" field.
func AttestationTypeGT ¶
AttestationTypeGT applies the GT predicate on the "attestation_type" field.
func AttestationTypeGTE ¶
AttestationTypeGTE applies the GTE predicate on the "attestation_type" field.
func AttestationTypeHasPrefix ¶
AttestationTypeHasPrefix applies the HasPrefix predicate on the "attestation_type" field.
func AttestationTypeHasSuffix ¶
AttestationTypeHasSuffix applies the HasSuffix predicate on the "attestation_type" field.
func AttestationTypeIn ¶
AttestationTypeIn applies the In predicate on the "attestation_type" field.
func AttestationTypeIsNil ¶
AttestationTypeIsNil applies the IsNil predicate on the "attestation_type" field.
func AttestationTypeLT ¶
AttestationTypeLT applies the LT predicate on the "attestation_type" field.
func AttestationTypeLTE ¶
AttestationTypeLTE applies the LTE predicate on the "attestation_type" field.
func AttestationTypeNEQ ¶
AttestationTypeNEQ applies the NEQ predicate on the "attestation_type" field.
func AttestationTypeNotIn ¶
AttestationTypeNotIn applies the NotIn predicate on the "attestation_type" field.
func AttestationTypeNotNil ¶
AttestationTypeNotNil applies the NotNil predicate on the "attestation_type" field.
func BackupEligible ¶
BackupEligible applies equality check predicate on the "backup_eligible" field. It's identical to BackupEligibleEQ.
func BackupEligibleEQ ¶
BackupEligibleEQ applies the EQ predicate on the "backup_eligible" field.
func BackupEligibleNEQ ¶
BackupEligibleNEQ applies the NEQ predicate on the "backup_eligible" field.
func BackupState ¶
BackupState applies equality check predicate on the "backup_state" field. It's identical to BackupStateEQ.
func BackupStateEQ ¶
BackupStateEQ applies the EQ predicate on the "backup_state" field.
func BackupStateNEQ ¶
BackupStateNEQ applies the NEQ predicate on the "backup_state" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CredentialID ¶
CredentialID applies equality check predicate on the "credential_id" field. It's identical to CredentialIDEQ.
func CredentialIDEQ ¶
CredentialIDEQ applies the EQ predicate on the "credential_id" field.
func CredentialIDGT ¶
CredentialIDGT applies the GT predicate on the "credential_id" field.
func CredentialIDGTE ¶
CredentialIDGTE applies the GTE predicate on the "credential_id" field.
func CredentialIDIn ¶
CredentialIDIn applies the In predicate on the "credential_id" field.
func CredentialIDLT ¶
CredentialIDLT applies the LT predicate on the "credential_id" field.
func CredentialIDLTE ¶
CredentialIDLTE applies the LTE predicate on the "credential_id" field.
func CredentialIDNEQ ¶
CredentialIDNEQ applies the NEQ predicate on the "credential_id" field.
func CredentialIDNotIn ¶
CredentialIDNotIn applies the NotIn predicate on the "credential_id" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func LastUsedAt ¶
LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
func LastUsedAtEQ ¶
LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
func LastUsedAtGT ¶
LastUsedAtGT applies the GT predicate on the "last_used_at" field.
func LastUsedAtGTE ¶
LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
func LastUsedAtIn ¶
LastUsedAtIn applies the In predicate on the "last_used_at" field.
func LastUsedAtIsNil ¶
LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
func LastUsedAtLT ¶
LastUsedAtLT applies the LT predicate on the "last_used_at" field.
func LastUsedAtLTE ¶
LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
func LastUsedAtNEQ ¶
LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
func LastUsedAtNotIn ¶
LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
func LastUsedAtNotNil ¶
LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func SignCount ¶
SignCount applies equality check predicate on the "sign_count" field. It's identical to SignCountEQ.
func SignCountEQ ¶
SignCountEQ applies the EQ predicate on the "sign_count" field.
func SignCountGT ¶
SignCountGT applies the GT predicate on the "sign_count" field.
func SignCountGTE ¶
SignCountGTE applies the GTE predicate on the "sign_count" field.
func SignCountIn ¶
SignCountIn applies the In predicate on the "sign_count" field.
func SignCountLT ¶
SignCountLT applies the LT predicate on the "sign_count" field.
func SignCountLTE ¶
SignCountLTE applies the LTE predicate on the "sign_count" field.
func SignCountNEQ ¶
SignCountNEQ applies the NEQ predicate on the "sign_count" field.
func SignCountNotIn ¶
SignCountNotIn applies the NotIn predicate on the "sign_count" field.
func TransportsIsNil ¶
TransportsIsNil applies the IsNil predicate on the "transports" field.
func TransportsNotNil ¶
TransportsNotNil applies the NotNil predicate on the "transports" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Passkey queries.
func ByAttestationType ¶
func ByAttestationType(opts ...sql.OrderTermOption) OrderOption
ByAttestationType orders the results by the attestation_type field.
func ByBackupEligible ¶
func ByBackupEligible(opts ...sql.OrderTermOption) OrderOption
ByBackupEligible orders the results by the backup_eligible field.
func ByBackupState ¶
func ByBackupState(opts ...sql.OrderTermOption) OrderOption
ByBackupState orders the results by the backup_state field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUsedAt ¶
func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
ByLastUsedAt orders the results by the last_used_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySignCount ¶
func BySignCount(opts ...sql.OrderTermOption) OrderOption
BySignCount orders the results by the sign_count field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.