Documentation ¶
Index ¶
- type Prompt
- func (p *Prompt) AddMapping(mapping map[string]string)
- func (p *Prompt) AddMappingFromFile(file string) error
- func (p *Prompt) AddSerials(serials map[string][]string)
- func (p *Prompt) PluggedIn() bool
- func (p *Prompt) Prompt(arn string) (string, error)
- func (p *Prompt) RetryText(arn string) string
- func (p *Prompt) Store(arn, base32seed string) error
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 ¶
AddMapping adds a mapping for OTP names
func (*Prompt) AddMappingFromFile ¶
AddMappingFromFile adds a mapping for OTP names from a file
func (*Prompt) AddSerials ¶ added in v3.2.0
AddSerials adds a serial lookup for OTP names
func (*Prompt) PluggedIn ¶ added in v3.0.1
PluggedIn returns true if a yubikey device is found on the system
Click to show internal directories.
Click to hide internal directories.