Help us shape the future of Go! Take the 2026 Go Developer Survey

yubiauth

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 6 Imported by: 0

README

yubiauth

Read MFA tokens from a yubikey.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeoutWaitingForKeys = fmt.Errorf("timeout waiting for keys")

Functions

This section is empty.

Types

type Command

type Command interface {
	CombinedOutput() ([]byte, error)
}

type Commander

type Commander func(string, ...string) ([]byte, error)

type Keys

type Keys map[string]string

func ReadYubioath

func ReadYubioath() (Keys, bool, error)

func WaitForKeys

func WaitForKeys(ctx context.Context) (Keys, error)

func (Keys) Lookup

func (k Keys) Lookup(key string) (string, bool)

Jump to

Keyboard shortcuts

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