Documentation ¶
Overview ¶
Package yubikey provides an indicator for a waiting yubikey.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var U2FAuthPendingPath = fmt.Sprintf("/var/run/user/%d/pam-u2f-authpending", os.Getuid())
U2FAuthPendingPath is the default path for the u2f pending file. This file is created whenever the yubikey is waiting for input to complete u2f authentication.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module represents a yubikey barista module that shows an indicator whenever the plugged-in yubikey is waiting for user input.
func ForPaths ¶
ForPaths constructs a yubikey module with the given paths for the u2f pending file and gpg keyring.
func New ¶
func New() *Module
New constructs a new yubikey module using the default paths for the u2f pending file and gpg keyring.
Click to show internal directories.
Click to hide internal directories.