Documentation ¶
Index ¶
- Variables
- func New(agent agent.Agent, fingerprints []string) agent.Agent
- type Filter
- func (f *Filter) Add(key agent.AddedKey) error
- func (f *Filter) List() ([]*agent.Key, error)
- func (f *Filter) Lock(passphrase []byte) error
- func (f *Filter) Remove(key ssh.PublicKey) error
- func (f *Filter) RemoveAll() error
- func (f *Filter) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (f *Filter) Signers() ([]ssh.Signer, error)
- func (f *Filter) Unlock(passphrase []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMatchingKey = errors.New("no matching key")
)
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter implements an agent.Agent forwarder that only forwards keys matching selected fingerprints. TODO: support multiple fingerprints.
func (*Filter) Lock ¶
Lock locks the agent. Sign and Remove will fail, and List will empty an empty list.
func (*Filter) Sign ¶
Sign has the agent sign the data using a protocol 2 key as defined in [PROTOCOL.agent] section 2.6.2.
Click to show internal directories.
Click to hide internal directories.