Documentation
¶
Index ¶
- Variables
- type App
- func (a *App) Delete(ctx context.Context, appID string) error
- func (a *App) Save(ctx context.Context, appID string, name string, hashedSecret string) error
- func (a *App) SecretByID(ctx context.Context, appID string) (string, error)
- func (a *App) UpdateSecret(ctx context.Context, appID string, hashedSecret string) error
- type User
- func (u *User) Create(ctx context.Context, user model.User, hashedPassword string) error
- func (u *User) FindByEmail(ctx context.Context, email string) (model.User, error)
- func (u *User) FindByID(ctx context.Context, userID string) (model.User, error)
- func (u *User) GetAllowedApps(ctx context.Context, userID string) ([]string, error)
- func (u *User) GetHashedPassword(ctx context.Context, email string) (string, error)
- func (u *User) GetMFASharedSecret(ctx context.Context, userID string) (string, error)
- func (u *User) GetRestoreKey(ctx context.Context, email string) (string, time.Time, error)
- func (u *User) ResetMFA(ctx context.Context, userID string) error
- func (u *User) SaveMFA(ctx context.Context, userID string, mfa string) error
- func (u *User) SaveMFASharedSecret(ctx context.Context, userID string, secret string) error
- func (u *User) SaveRestoreKey(ctx context.Context, email string, restoreKey string, ttl time.Time) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) SecretByID ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) FindByEmail ¶
func (*User) GetAllowedApps ¶
func (*User) GetHashedPassword ¶
func (*User) GetMFASharedSecret ¶
func (*User) GetRestoreKey ¶
func (*User) SaveMFASharedSecret ¶
Click to show internal directories.
Click to hide internal directories.