gopass: github.com/justwatchcom/gopass/pkg/agent Index | Files | Directories

package agent

import "github.com/justwatchcom/gopass/pkg/agent"

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

Package Files

agent.go cache.go doc.go

type Agent Uses

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

Agent is a gopass agent

func New Uses

func New(dir string) *Agent

New creates a new agent

func NewForTesting Uses

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

NewForTesting creates a new agent for testing

func (*Agent) ListenAndServe Uses

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

ListenAndServe starts listening and blocks

Directories

PathSynopsis
client

Package agent imports 12 packages (graph). Updated 2019-01-17. Refresh now. Tools for package owners.