Documentation ¶
Index ¶
- type AuditLogPersister
- type EmailPersister
- type IdentityPersister
- type JwkPersister
- type Migrator
- type PasscodePersister
- type PasswordCredentialPersister
- type Persister
- type PrimaryEmailPersister
- type Storage
- type TokenPersister
- type UserPersister
- type WebauthnCredentialPersister
- type WebauthnSessionDataPersister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditLogPersister ¶
type AuditLogPersister interface { Create(auditLog models.AuditLog) error Get(id uuid.UUID) (*models.AuditLog, error) List(page int, perPage int, startTime *time.Time, endTime *time.Time, types []string, userId string, email string, ip string, searchString string) ([]models.AuditLog, error) Delete(auditLog models.AuditLog) error Count(startTime *time.Time, endTime *time.Time, types []string, userId string, email string, ip string, searchString string) (int, error) }
func NewAuditLogPersister ¶
func NewAuditLogPersister(db *pop.Connection) AuditLogPersister
type EmailPersister ¶
type EmailPersister interface { Get(emailId uuid.UUID) (*models.Email, error) CountByUserId(uuid.UUID) (int, error) FindByUserId(uuid.UUID) (models.Emails, error) FindByAddress(string) (*models.Email, error) Create(models.Email) error Update(models.Email) error Delete(models.Email) error }
func NewEmailPersister ¶
func NewEmailPersister(db *pop.Connection) EmailPersister
type IdentityPersister ¶ added in v0.5.0
type IdentityPersister interface { Get(userProviderID string, providerID string) (*models.Identity, error) Create(identity models.Identity) error Update(identity models.Identity) error Delete(identity models.Identity) error }
func NewIdentityPersister ¶ added in v0.5.0
func NewIdentityPersister(db *pop.Connection) IdentityPersister
type JwkPersister ¶
type JwkPersister interface { Get(int) (*models.Jwk, error) GetAll() ([]models.Jwk, error) GetLast() (*models.Jwk, error) Create(models.Jwk) error }
func NewJwkPersister ¶
func NewJwkPersister(db *pop.Connection) JwkPersister
type PasscodePersister ¶
type PasscodePersister interface { Get(uuid.UUID) (*models.Passcode, error) Create(models.Passcode) error Update(models.Passcode) error Delete(models.Passcode) error }
func NewPasscodePersister ¶
func NewPasscodePersister(db *pop.Connection) PasscodePersister
type PasswordCredentialPersister ¶
type PasswordCredentialPersister interface { Create(password models.PasswordCredential) error GetByUserID(userId uuid.UUID) (*models.PasswordCredential, error) Update(password models.PasswordCredential) error }
func NewPasswordCredentialPersister ¶
func NewPasswordCredentialPersister(db *pop.Connection) PasswordCredentialPersister
type Persister ¶
type Persister interface { GetConnection() *pop.Connection Transaction(func(tx *pop.Connection) error) error GetIdentityPersister() IdentityPersister GetIdentityPersisterWithConnection(tx *pop.Connection) IdentityPersister GetUserPersister() UserPersister GetUserPersisterWithConnection(tx *pop.Connection) UserPersister GetPasscodePersister() PasscodePersister GetPasscodePersisterWithConnection(tx *pop.Connection) PasscodePersister GetPasswordCredentialPersister() PasswordCredentialPersister GetPasswordCredentialPersisterWithConnection(tx *pop.Connection) PasswordCredentialPersister GetWebauthnCredentialPersister() WebauthnCredentialPersister GetWebauthnCredentialPersisterWithConnection(tx *pop.Connection) WebauthnCredentialPersister GetWebauthnSessionDataPersister() WebauthnSessionDataPersister GetWebauthnSessionDataPersisterWithConnection(tx *pop.Connection) WebauthnSessionDataPersister GetJwkPersister() JwkPersister GetJwkPersisterWithConnection(tx *pop.Connection) JwkPersister GetAuditLogPersister() AuditLogPersister GetAuditLogPersisterWithConnection(tx *pop.Connection) AuditLogPersister GetEmailPersister() EmailPersister GetEmailPersisterWithConnection(tx *pop.Connection) EmailPersister GetPrimaryEmailPersister() PrimaryEmailPersister GetPrimaryEmailPersisterWithConnection(tx *pop.Connection) PrimaryEmailPersister GetTokenPersister() TokenPersister GetTokenPersisterWithConnection(tx *pop.Connection) TokenPersister }
type PrimaryEmailPersister ¶
type PrimaryEmailPersister interface { Create(models.PrimaryEmail) error Update(models.PrimaryEmail) error }
func NewPrimaryEmailPersister ¶
func NewPrimaryEmailPersister(db *pop.Connection) PrimaryEmailPersister
type TokenPersister ¶ added in v0.6.0
type TokenPersister interface { Create(token models.Token) error GetByValue(value string) (*models.Token, error) Delete(token models.Token) error }
func NewTokenPersister ¶ added in v0.6.0
func NewTokenPersister(db *pop.Connection) TokenPersister
type UserPersister ¶
type UserPersister interface { Get(uuid.UUID) (*models.User, error) Create(models.User) error Update(models.User) error Delete(models.User) error List(page int, perPage int, userId uuid.UUID, email string, sortDirection string) ([]models.User, error) Count(userId uuid.UUID, email string) (int, error) }
func NewUserPersister ¶
func NewUserPersister(db *pop.Connection) UserPersister
type WebauthnCredentialPersister ¶
type WebauthnCredentialPersister interface { Get(string) (*models.WebauthnCredential, error) Create(models.WebauthnCredential) error Update(models.WebauthnCredential) error Delete(models.WebauthnCredential) error GetFromUser(uuid.UUID) ([]models.WebauthnCredential, error) }
func NewWebauthnCredentialPersister ¶
func NewWebauthnCredentialPersister(db *pop.Connection) WebauthnCredentialPersister
type WebauthnSessionDataPersister ¶
type WebauthnSessionDataPersister interface { Get(id uuid.UUID) (*models.WebauthnSessionData, error) GetByChallenge(challenge string) (*models.WebauthnSessionData, error) Create(sessionData models.WebauthnSessionData) error Update(sessionData models.WebauthnSessionData) error Delete(sessionData models.WebauthnSessionData) error }
func NewWebauthnSessionDataPersister ¶
func NewWebauthnSessionDataPersister(db *pop.Connection) WebauthnSessionDataPersister
Source Files ¶
Click to show internal directories.
Click to hide internal directories.