client

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient added in v1.8.4

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

WithClient returns a context with a client instance set.

Types

type Client

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

Client is a agent client

func GetClient added in v1.8.4

func GetClient(ctx context.Context) *Client

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

func New

func New(dir string) *Client

New creates a new client

func (*Client) Passphrase

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

Passphrase asks for a passphrase from the agent

func (*Client) Ping

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

Ping checks connectivity to the agent

func (*Client) Remove

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

Remove un-caches a single key

Jump to

Keyboard shortcuts

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