Help us shape the future of Go! Take the 2026 Go Developer Survey

passkey

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for passkey fields.

Functions

func Aaguid

func Aaguid(v []byte) predicate.Passkey

Aaguid applies equality check predicate on the "aaguid" field. It's identical to AaguidEQ.

func AaguidEQ

func AaguidEQ(v []byte) predicate.Passkey

AaguidEQ applies the EQ predicate on the "aaguid" field.

func AaguidGT

func AaguidGT(v []byte) predicate.Passkey

AaguidGT applies the GT predicate on the "aaguid" field.

func AaguidGTE

func AaguidGTE(v []byte) predicate.Passkey

AaguidGTE applies the GTE predicate on the "aaguid" field.

func AaguidIn

func AaguidIn(vs ...[]byte) predicate.Passkey

AaguidIn applies the In predicate on the "aaguid" field.

func AaguidIsNil

func AaguidIsNil() predicate.Passkey

AaguidIsNil applies the IsNil predicate on the "aaguid" field.

func AaguidLT

func AaguidLT(v []byte) predicate.Passkey

AaguidLT applies the LT predicate on the "aaguid" field.

func AaguidLTE

func AaguidLTE(v []byte) predicate.Passkey

AaguidLTE applies the LTE predicate on the "aaguid" field.

func AaguidNEQ

func AaguidNEQ(v []byte) predicate.Passkey

AaguidNEQ applies the NEQ predicate on the "aaguid" field.

func AaguidNotIn

func AaguidNotIn(vs ...[]byte) predicate.Passkey

AaguidNotIn applies the NotIn predicate on the "aaguid" field.

func AaguidNotNil

func AaguidNotNil() predicate.Passkey

AaguidNotNil applies the NotNil predicate on the "aaguid" field.

func And

func And(predicates ...predicate.Passkey) predicate.Passkey

And groups predicates with the AND operator between them.

func AttestationType

func AttestationType(v string) predicate.Passkey

AttestationType applies equality check predicate on the "attestation_type" field. It's identical to AttestationTypeEQ.

func AttestationTypeContains

func AttestationTypeContains(v string) predicate.Passkey

AttestationTypeContains applies the Contains predicate on the "attestation_type" field.

func AttestationTypeContainsFold

func AttestationTypeContainsFold(v string) predicate.Passkey

AttestationTypeContainsFold applies the ContainsFold predicate on the "attestation_type" field.

func AttestationTypeEQ

func AttestationTypeEQ(v string) predicate.Passkey

AttestationTypeEQ applies the EQ predicate on the "attestation_type" field.

func AttestationTypeEqualFold

func AttestationTypeEqualFold(v string) predicate.Passkey

AttestationTypeEqualFold applies the EqualFold predicate on the "attestation_type" field.

func AttestationTypeGT

func AttestationTypeGT(v string) predicate.Passkey

AttestationTypeGT applies the GT predicate on the "attestation_type" field.

func AttestationTypeGTE

func AttestationTypeGTE(v string) predicate.Passkey

AttestationTypeGTE applies the GTE predicate on the "attestation_type" field.

func AttestationTypeHasPrefix

func AttestationTypeHasPrefix(v string) predicate.Passkey

AttestationTypeHasPrefix applies the HasPrefix predicate on the "attestation_type" field.

func AttestationTypeHasSuffix

func AttestationTypeHasSuffix(v string) predicate.Passkey

AttestationTypeHasSuffix applies the HasSuffix predicate on the "attestation_type" field.

func AttestationTypeIn

func AttestationTypeIn(vs ...string) predicate.Passkey

AttestationTypeIn applies the In predicate on the "attestation_type" field.

func AttestationTypeIsNil

func AttestationTypeIsNil() predicate.Passkey

AttestationTypeIsNil applies the IsNil predicate on the "attestation_type" field.

func AttestationTypeLT

func AttestationTypeLT(v string) predicate.Passkey

AttestationTypeLT applies the LT predicate on the "attestation_type" field.

func AttestationTypeLTE

func AttestationTypeLTE(v string) predicate.Passkey

AttestationTypeLTE applies the LTE predicate on the "attestation_type" field.

func AttestationTypeNEQ

func AttestationTypeNEQ(v string) predicate.Passkey

AttestationTypeNEQ applies the NEQ predicate on the "attestation_type" field.

func AttestationTypeNotIn

func AttestationTypeNotIn(vs ...string) predicate.Passkey

AttestationTypeNotIn applies the NotIn predicate on the "attestation_type" field.

func AttestationTypeNotNil

func AttestationTypeNotNil() predicate.Passkey

AttestationTypeNotNil applies the NotNil predicate on the "attestation_type" field.

func BackupEligible

func BackupEligible(v bool) predicate.Passkey

BackupEligible applies equality check predicate on the "backup_eligible" field. It's identical to BackupEligibleEQ.

func BackupEligibleEQ

func BackupEligibleEQ(v bool) predicate.Passkey

BackupEligibleEQ applies the EQ predicate on the "backup_eligible" field.

func BackupEligibleNEQ

func BackupEligibleNEQ(v bool) predicate.Passkey

BackupEligibleNEQ applies the NEQ predicate on the "backup_eligible" field.

func BackupState

func BackupState(v bool) predicate.Passkey

BackupState applies equality check predicate on the "backup_state" field. It's identical to BackupStateEQ.

func BackupStateEQ

func BackupStateEQ(v bool) predicate.Passkey

BackupStateEQ applies the EQ predicate on the "backup_state" field.

func BackupStateNEQ

func BackupStateNEQ(v bool) predicate.Passkey

BackupStateNEQ applies the NEQ predicate on the "backup_state" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Passkey

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Passkey

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Passkey

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Passkey

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Passkey

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Passkey

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Passkey

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Passkey

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Passkey

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CredentialID

func CredentialID(v []byte) predicate.Passkey

CredentialID applies equality check predicate on the "credential_id" field. It's identical to CredentialIDEQ.

func CredentialIDEQ

func CredentialIDEQ(v []byte) predicate.Passkey

CredentialIDEQ applies the EQ predicate on the "credential_id" field.

func CredentialIDGT

func CredentialIDGT(v []byte) predicate.Passkey

CredentialIDGT applies the GT predicate on the "credential_id" field.

func CredentialIDGTE

func CredentialIDGTE(v []byte) predicate.Passkey

CredentialIDGTE applies the GTE predicate on the "credential_id" field.

func CredentialIDIn

func CredentialIDIn(vs ...[]byte) predicate.Passkey

CredentialIDIn applies the In predicate on the "credential_id" field.

func CredentialIDLT

func CredentialIDLT(v []byte) predicate.Passkey

CredentialIDLT applies the LT predicate on the "credential_id" field.

func CredentialIDLTE

func CredentialIDLTE(v []byte) predicate.Passkey

CredentialIDLTE applies the LTE predicate on the "credential_id" field.

func CredentialIDNEQ

func CredentialIDNEQ(v []byte) predicate.Passkey

CredentialIDNEQ applies the NEQ predicate on the "credential_id" field.

func CredentialIDNotIn

func CredentialIDNotIn(vs ...[]byte) predicate.Passkey

CredentialIDNotIn applies the NotIn predicate on the "credential_id" field.

func HasUser

func HasUser() predicate.Passkey

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Passkey

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.Passkey

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Passkey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Passkey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Passkey

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Passkey

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Passkey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Passkey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Passkey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Passkey

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.Passkey

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.Passkey

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.Passkey

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.Passkey

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.Passkey

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.Passkey

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.Passkey

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.Passkey

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.Passkey

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.Passkey

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.Passkey

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func Name

func Name(v string) predicate.Passkey

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Passkey

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Passkey

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Passkey

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Passkey

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Passkey

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Passkey

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Passkey

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Passkey

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Passkey

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Passkey

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Passkey

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Passkey

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Passkey

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Passkey) predicate.Passkey

Or groups predicates with the OR operator between them.

func PublicKey

func PublicKey(v []byte) predicate.Passkey

PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.

func PublicKeyEQ

func PublicKeyEQ(v []byte) predicate.Passkey

PublicKeyEQ applies the EQ predicate on the "public_key" field.

func PublicKeyGT

func PublicKeyGT(v []byte) predicate.Passkey

PublicKeyGT applies the GT predicate on the "public_key" field.

func PublicKeyGTE

func PublicKeyGTE(v []byte) predicate.Passkey

PublicKeyGTE applies the GTE predicate on the "public_key" field.

func PublicKeyIn

func PublicKeyIn(vs ...[]byte) predicate.Passkey

PublicKeyIn applies the In predicate on the "public_key" field.

func PublicKeyLT

func PublicKeyLT(v []byte) predicate.Passkey

PublicKeyLT applies the LT predicate on the "public_key" field.

func PublicKeyLTE

func PublicKeyLTE(v []byte) predicate.Passkey

PublicKeyLTE applies the LTE predicate on the "public_key" field.

func PublicKeyNEQ

func PublicKeyNEQ(v []byte) predicate.Passkey

PublicKeyNEQ applies the NEQ predicate on the "public_key" field.

func PublicKeyNotIn

func PublicKeyNotIn(vs ...[]byte) predicate.Passkey

PublicKeyNotIn applies the NotIn predicate on the "public_key" field.

func SignCount

func SignCount(v int64) predicate.Passkey

SignCount applies equality check predicate on the "sign_count" field. It's identical to SignCountEQ.

func SignCountEQ

func SignCountEQ(v int64) predicate.Passkey

SignCountEQ applies the EQ predicate on the "sign_count" field.

func SignCountGT

func SignCountGT(v int64) predicate.Passkey

SignCountGT applies the GT predicate on the "sign_count" field.

func SignCountGTE

func SignCountGTE(v int64) predicate.Passkey

SignCountGTE applies the GTE predicate on the "sign_count" field.

func SignCountIn

func SignCountIn(vs ...int64) predicate.Passkey

SignCountIn applies the In predicate on the "sign_count" field.

func SignCountLT

func SignCountLT(v int64) predicate.Passkey

SignCountLT applies the LT predicate on the "sign_count" field.

func SignCountLTE

func SignCountLTE(v int64) predicate.Passkey

SignCountLTE applies the LTE predicate on the "sign_count" field.

func SignCountNEQ

func SignCountNEQ(v int64) predicate.Passkey

SignCountNEQ applies the NEQ predicate on the "sign_count" field.

func SignCountNotIn

func SignCountNotIn(vs ...int64) predicate.Passkey

SignCountNotIn applies the NotIn predicate on the "sign_count" field.

func TransportsIsNil

func TransportsIsNil() predicate.Passkey

TransportsIsNil applies the IsNil predicate on the "transports" field.

func TransportsNotNil

func TransportsNotNil() predicate.Passkey

TransportsNotNil applies the NotNil predicate on the "transports" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Passkey

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Passkey

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Passkey

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Passkey

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Passkey

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Passkey

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Passkey

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Passkey

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Passkey

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v int64) predicate.Passkey

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.Passkey

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.Passkey

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.Passkey

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.Passkey

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL