Versions in this module Expand all Collapse all v1 v1.0.2 Nov 28, 2021 v1.0.1 Aug 29, 2020 Changes in this version + var ErrEntryExistedBefore = errors.New("entry existed before") + var ErrNoEntryFound = errors.New("no entry found") + func NewRepository(kvStore keyvalue.Store) *repository + type Repository interface + Add func(alias string, secret string) error + Delete func(alias string) error + Generate func(alias string) (totp.Token, error) + LastValidEntry func() (string, error) + List func() ([]string, error)