yubikey

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	Fallback bool
	// contains filtered or unexported fields
}

Prompt defines a yubikey prompt object

func NewPrompt

func NewPrompt() *Prompt

NewPrompt populates the yubikey mapping from a dotfile, if it exists

func (*Prompt) AddMapping

func (p *Prompt) AddMapping(mapping map[string]string)

AddMapping adds a mapping for OTP names

func (*Prompt) AddMappingFromFile

func (p *Prompt) AddMappingFromFile(file string) error

AddMappingFromFile adds a mapping for OTP names from a file

func (*Prompt) Prompt

func (p *Prompt) Prompt() (string, error)

Prompt asks the yubikey for a code

func (*Prompt) Store added in v0.10.4

func (p *Prompt) Store(base32seed string) error

Store writes an OTP to the yubikey

Jump to

Keyboard shortcuts

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