Documentation
¶
Overview ¶
Package sqlstore persists passkey ceremonies and credentials via database/sql against PostgreSQL-compatible servers (PostgreSQL, SereneDB, and similar).
Index ¶
- Constants
- type Store
- func (s *Store) CountCredentials(ctx context.Context, subjectID string) (int, error)
- func (s *Store) DeleteCredential(ctx context.Context, subjectID string, credentialID []byte) error
- func (s *Store) ListCredentials(ctx context.Context, subjectID string) ([]passkey.CredentialRecord, error)
- func (s *Store) LookupCredential(ctx context.Context, credentialID []byte, subjectID string) (passkey.CredentialRecord, error)
- func (s *Store) PutCeremony(ctx context.Context, c passkey.Ceremony) error
- func (s *Store) PutCredential(ctx context.Context, rec passkey.CredentialRecord) error
- func (s *Store) TakeCeremony(ctx context.Context, digest [32]byte) (passkey.Ceremony, error)
- func (s *Store) UpdateCredential(ctx context.Context, rec passkey.CredentialRecord) error
Constants ¶
const Schema = `` /* 671-byte string literal not displayed */
Schema is applied idempotently by Open.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a multi-host passkey.Store.