tokeny

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEntryFound       = errors.New("no entry found")
	ErrEntryExistedBefore = errors.New("entry existed before")
)

Functions

func NewRepository

func NewRepository(kvStore keyvalue.Store) *repository

Types

type Repository

type Repository interface {
	Add(alias string, secret string) error
	Generate(alias string) (totp.Token, error)
	Delete(alias string) error
	List() ([]string, error)
	LastValidEntry() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL