yubikey

package
v0.0.0-...-c936f35 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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

This section is empty.

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 ForPath

func ForPath(gpgPubringPath string) *Module

ForPath constructs a yubikey module with the given path to the 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