Documentation ¶
Index ¶
- type NamedPipe
- type NamedPipeClient
- func (a *NamedPipeClient) Add(key agent.AddedKey) error
- func (a *NamedPipeClient) Close() error
- func (a *NamedPipeClient) Extension(extensionType string, contents []byte) ([]byte, error)
- func (a *NamedPipeClient) List() ([]*agent.Key, error)
- func (a *NamedPipeClient) Lock(passphrase []byte) error
- func (a *NamedPipeClient) Remove(key ssh.PublicKey) error
- func (a *NamedPipeClient) RemoveAll() error
- func (a *NamedPipeClient) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (a *NamedPipeClient) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (a *NamedPipeClient) Signers() ([]ssh.Signer, error)
- func (a *NamedPipeClient) Unlock(passphrase []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedPipeClient ¶
type NamedPipeClient struct { Debug bool // contains filtered or unexported fields }
func (*NamedPipeClient) Add ¶
func (a *NamedPipeClient) Add(key agent.AddedKey) error
Add adds a private key to the agent.
func (*NamedPipeClient) Close ¶
func (a *NamedPipeClient) Close() error
func (*NamedPipeClient) Extension ¶
func (a *NamedPipeClient) Extension(extensionType string, contents []byte) ([]byte, error)
func (*NamedPipeClient) Lock ¶
func (a *NamedPipeClient) Lock(passphrase []byte) error
Lock locks the agent. Sign and Remove will fail, and List will empty an empty list.
func (*NamedPipeClient) Remove ¶
func (a *NamedPipeClient) Remove(key ssh.PublicKey) error
Remove removes all identities with the given public key.
func (*NamedPipeClient) RemoveAll ¶
func (a *NamedPipeClient) RemoveAll() error
RemoveAll removes all identities.
func (*NamedPipeClient) Sign ¶
Sign has the agent sign the data using a protocol 2 key as defined in [PROTOCOL.agent] section 2.6.2.
func (*NamedPipeClient) SignWithFlags ¶
func (a *NamedPipeClient) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
func (*NamedPipeClient) Signers ¶
func (a *NamedPipeClient) Signers() ([]ssh.Signer, error)
Signers returns signers for all the known keys.
func (*NamedPipeClient) Unlock ¶
func (a *NamedPipeClient) Unlock(passphrase []byte) error
Unlock undoes the effect of Lock
Click to show internal directories.
Click to hide internal directories.