Documentation
¶
Index ¶
- type Store
- func (s *Store) AddCredential(ctx context.Context, credential store.Credential, limit int, now int64) error
- func (s *Store) Close() error
- func (s *Store) CreateSession(ctx context.Context, hash []byte, userID string, expires, now int64) error
- func (s *Store) CreateUser(ctx context.Context, credential store.Credential, recoveryMAC []byte, ...) error
- func (s *Store) Credentials(ctx context.Context, userID string) ([]store.Credential, error)
- func (s *Store) DeleteSession(ctx context.Context, hash []byte, now int64) error
- func (s *Store) DeleteSessions(ctx context.Context, userID string, now int64) error
- func (s *Store) DeleteUser(ctx context.Context, userID string, now int64) error
- func (s *Store) Enroll(ctx context.Context, credential store.Credential, ...) error
- func (s *Store) ExtendSession(ctx context.Context, hash []byte, expires, now int64) error
- func (s *Store) PutChallenge(ctx context.Context, slot string, data []byte, expires, now int64) error
- func (s *Store) RemoveCredential(ctx context.Context, userID string, credentialID []byte, now int64) error
- func (s *Store) ReplaceRecovery(ctx context.Context, userID string, oldMAC, newMAC []byte, now int64) error
- func (s *Store) Reset(ctx context.Context, userID string, tokenHash []byte, until, now int64) error
- func (s *Store) RotateRecovery(ctx context.Context, userID string, newMAC []byte, now int64) error
- func (s *Store) Session(ctx context.Context, hash []byte, now int64) (string, int64, error)
- func (s *Store) TakeChallenge(ctx context.Context, slot string, now int64) ([]byte, error)
- func (s *Store) UpdateCredential(ctx context.Context, id, data []byte, now int64) error
- func (s *Store) User(ctx context.Context, id string, now int64) (store.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddCredential ¶
func (*Store) CreateSession ¶
func (*Store) CreateUser ¶
func (*Store) Credentials ¶
func (*Store) DeleteSession ¶
func (*Store) DeleteSessions ¶
func (*Store) DeleteUser ¶
func (*Store) ExtendSession ¶
func (*Store) PutChallenge ¶
func (*Store) RemoveCredential ¶
func (*Store) ReplaceRecovery ¶
func (*Store) RotateRecovery ¶
func (*Store) TakeChallenge ¶
func (*Store) UpdateCredential ¶
Click to show internal directories.
Click to hide internal directories.