yubikey

package
v0.0.0-...-8e8406b Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Yubikey

type Yubikey struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Yubikey is a source based on a Yubikey

func New

func New() (*Yubikey, error)

New initializes a new Yubikey source

func (*Yubikey) Add

func (y *Yubikey) Add(name string, secret []byte) error

Add adds / overwrites a credential to a Yubikey

func (*Yubikey) Delete

func (y *Yubikey) Delete(name string) error

Delete deletes a credential from a Yubikey

func (*Yubikey) Generate

func (y *Yubikey) Generate(clock time.Time, name string) (string, error)

Generate generates a new OTP with a Yubikey

func (*Yubikey) Name

func (y *Yubikey) Name() string

Name returns the name of this source

Jump to

Keyboard shortcuts

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