Documentation
¶
Index ¶
- Variables
- type SQLite
- func (s *SQLite) Close() error
- func (s *SQLite) CreateUser(ctx context.Context, user *user.User) error
- func (s *SQLite) DeleteKey(ctx context.Context, keyID string) error
- func (s *SQLite) DeleteUser(ctx context.Context, userId string) error
- func (s *SQLite) FindKeyById(ctx context.Context, keyID string) (user.Passkey, error)
- func (s *SQLite) FindUserByCredentialInfo(ctx context.Context, rid []byte, handle []byte) (*user.User, error)
- func (s *SQLite) GetAllUsers(ctx context.Context) ([]*user.AdminListUser, error)
- func (s *SQLite) GetUserByGuid(ctx context.Context, guid string) (*user.User, error)
- func (s *SQLite) GetUserByUsername(ctx context.Context, username string) (*user.User, error)
- func (s *SQLite) NeedsSetup(ctx context.Context) (bool, error)
- func (s *SQLite) SaveCredentialForUser(ctx context.Context, userId string, credential *webauthn.Credential) error
- func (s *SQLite) SaveUser(ctx context.Context, user *user.User) error
- func (s *SQLite) SetUserEnabled(ctx context.Context, userId string, enabled bool) error
- func (s *SQLite) UpdateCredentialOnLogin(ctx context.Context, credential *webauthn.Credential) error
- func (s *SQLite) UpdateKeyName(ctx context.Context, keyID string, name *string) error
- func (s *SQLite) UpdatePassword(ctx context.Context, user *user.User) error
- func (s *SQLite) UpdateTOTPSeed(ctx context.Context, userID string, secret string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoUsersAffected = fmt.Errorf("database: no users affected on update") Base64Encoder = base64.URLEncoding.WithPadding(base64.NoPadding) )
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func NewSQLiteFromConfig ¶
func (*SQLite) FindKeyById ¶
func (*SQLite) FindUserByCredentialInfo ¶
func (*SQLite) GetAllUsers ¶
func (*SQLite) GetUserByGuid ¶
TODO: refactor this common code between GetUserByX functions
func (*SQLite) GetUserByUsername ¶
func (*SQLite) SaveCredentialForUser ¶
func (*SQLite) SetUserEnabled ¶
func (*SQLite) UpdateCredentialOnLogin ¶
func (*SQLite) UpdateKeyName ¶
func (*SQLite) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.