passcache

package
v0.12.7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheLocation string = filepath.Join(locations.CacheDir, cacheName)

Functions

func InitCache

func InitCache() *cache.Cache

Open new database where to store yubikey password

Types

type YubikeyPasswordCache

type YubikeyPasswordCache struct {
	// contains filtered or unexported fields
}

func New

func New(serial string) *YubikeyPasswordCache

func (*YubikeyPasswordCache) Delete

func (ypc *YubikeyPasswordCache) Delete() error

Removes a password from Cache Database

func (*YubikeyPasswordCache) Read

func (ypc *YubikeyPasswordCache) Read() (string, error)

Read password (if any) from Cache Database

func (*YubikeyPasswordCache) Write

func (ypc *YubikeyPasswordCache) Write(password string) error

Save password to Cache Database

Jump to

Keyboard shortcuts

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