filter

package
v0.0.0-...-7fb4617 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKey     = errors.New("invalid key; this key is not handled by this agent")
	ErrNotImplemented = errors.New("not implemented")
)

Functions

This section is empty.

Types

type Filter

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

func NewFilter

func NewFilter(key *agent.Key, underlayingAgent agent.Agent, processName string, verbose bool) (*Filter, error)

func (*Filter) Add

func (p *Filter) Add(key agent.AddedKey) error

func (*Filter) List

func (p *Filter) List() ([]*agent.Key, error)

func (*Filter) Lock

func (p *Filter) Lock(passphrase []byte) error

func (*Filter) Remove

func (p *Filter) Remove(key ssh.PublicKey) error

func (*Filter) RemoveAll

func (p *Filter) RemoveAll() error

func (*Filter) Sign

func (p *Filter) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)

func (*Filter) Signers

func (p *Filter) Signers() ([]ssh.Signer, error)

func (*Filter) Unlock

func (p *Filter) Unlock(passphrase []byte) error

Jump to

Keyboard shortcuts

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