Documentation
¶
Index ¶
- type DB
- func (db *DB) Add(sig string, exp int64) error
- func (db *DB) AdminUpdateUser(username, password string, admin, disabled bool) error
- func (db *DB) Check(sig string) (ok bool)
- func (db *DB) Close() error
- func (db *DB) CreateUser(username, email, password string, admin, disabled bool) error
- func (db *DB) DeleteUser(username string) error
- func (db *DB) Dump(w io.Writer) error
- func (db *DB) GetUser(username string) (u *core.User, err error)
- func (db *DB) GetUserSecret(username string) (secret string, err error)
- func (db *DB) GetUserWithoutSecrets(username string) (u *core.User, err error)
- func (db *DB) GetUsers() (users core.Users, err error)
- func (db *DB) LockedOut(username, created string) bool
- func (db *DB) Login(username, password string) (u *core.User, err error)
- func (db *DB) Map() (list jwt.BlacklistMap, err error)
- func (db *DB) Remove(sig string) error
- func (db *DB) ResetAdmin() error
- func (db *DB) Restore(r io.Reader) error
- func (db *DB) RunMigrations() (err error)
- func (db *DB) Totp(username, pin string) (u *core.User, err error)
- func (db *DB) UnlockUser(username string) (err error)
- func (db *DB) UpdateUserPassword(username, password string) error
- func (db *DB) UpdateUserSecret(username, secret string) error
- func (db *DB) UserExists(username string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AdminUpdateUser ¶
func (*DB) CreateUser ¶
func (*DB) DeleteUser ¶
func (*DB) GetUserWithoutSecrets ¶
func (*DB) ResetAdmin ¶
func (*DB) RunMigrations ¶
func (*DB) UnlockUser ¶
func (*DB) UpdateUserPassword ¶
func (*DB) UpdateUserSecret ¶
func (*DB) UserExists ¶
Click to show internal directories.
Click to hide internal directories.