Documentation ¶
Overview ¶
Package sshagent provides an SSH agent implementation that's bootstraped with the given signers, which cannot be changed.
It is intended to be used on testing only.
Index ¶
- type Agent
- func (a *Agent) Add(key agent.AddedKey) error
- func (a *Agent) Close() error
- func (a *Agent) List() ([]*agent.Key, error)
- func (a *Agent) Lock(passphrase []byte) error
- func (a *Agent) Ready() bool
- func (a *Agent) Remove(key ssh.PublicKey) error
- func (a *Agent) RemoveAll() error
- func (a *Agent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (a *Agent) Signers() ([]ssh.Signer, error)
- func (a *Agent) Socket() string
- func (a *Agent) Start() error
- func (a *Agent) Unlock(passphrase []byte) error
- type ErrUnsupportedOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is the ssh agent implementation.
type ErrUnsupportedOperation ¶
type ErrUnsupportedOperation struct {
Op string
}
ErrUnsupportedOperation is returned on operations that are not implemented.
func (ErrUnsupportedOperation) Error ¶
func (e ErrUnsupportedOperation) Error() string
Click to show internal directories.
Click to hide internal directories.