yubikey

package
v0.0.0-...-cb77e8e Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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

func ForPaths(u2fAuthPendingPath string, gpgPubringPath string) *Module

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.

func (*Module) Output

func (m *Module) Output(outputFunc func(bool, bool) bar.Output) *Module

Output sets the output format for the module.

func (*Module) Stream

func (m *Module) Stream(sink bar.Sink)

Stream starts the module.

Jump to

Keyboard shortcuts

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