yubikey

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 9 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 {
	// 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(arn string) (string, error)

Prompt asks the yubikey for a code

func (*Prompt) Store

func (p *Prompt) Store(arn, 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