agent

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package agent contains a long running background process to aide gopass in caching credentials. Since gopass is a one-off application it can not store much state in memory. It's lost once gopass quits. However certain operations require frequently entering credentials, like passphrases for custom crypto backend or encrypted config stores. This package implements an agent, similar to the GPG or SSH agents, that can ask for and cache credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Agent is a gopass agent

func New

func New(dir string) *Agent

New creates a new agent

func NewForTesting

func NewForTesting(dir, key, pass string) *Agent

NewForTesting creates a new agent for testing

func (*Agent) ListenAndServe

func (a *Agent) ListenAndServe(ctx context.Context) error

ListenAndServe starts listening and blocks

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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