gopass: Index | Files

package client

import ""


Package Files

client.go client_others.go context.go

func WithClient Uses

func WithClient(ctx context.Context, c *Client) context.Context

WithClient returns a context with a client instance set.

type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client is a agent client

func GetClient Uses

func GetClient(ctx context.Context) *Client

GetClient returns a client instance, if set. May be nil.

func New Uses

func New(dir string) *Client

New creates a new client

func (*Client) Passphrase Uses

func (c *Client) Passphrase(ctx context.Context, key, reason string) (string, error)

Passphrase asks for a passphrase from the agent

func (*Client) Ping Uses

func (c *Client) Ping(ctx context.Context) error

Ping checks connectivity to the agent

func (*Client) Remove Uses

func (c *Client) Remove(ctx context.Context, key string) error

Remove un-caches a single key

Package client imports 15 packages (graph). Updated 2019-01-06. Refresh now. Tools for package owners.