Documentation
¶
Index ¶
- type SSHAgent
- func (s *SSHAgent) Add(key agent.AddedKey) error
- func (s *SSHAgent) Close()
- func (s *SSHAgent) Extension(extensionType string, contents []byte) ([]byte, error)
- func (s *SSHAgent) List() ([]*agent.Key, error)
- func (s *SSHAgent) Lock(passphrase []byte) error
- func (s *SSHAgent) Remove(key ssh.PublicKey) error
- func (s *SSHAgent) RemoveAll() error
- func (s *SSHAgent) Serve(listener net.Listener) error
- func (s *SSHAgent) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (s *SSHAgent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
- func (s *SSHAgent) Signers() (out []ssh.Signer, _ error)
- func (s *SSHAgent) Unlock(passphrase []byte) error
- func (s *SSHAgent) UsingLocalKeys(keys ...string)
- func (s *SSHAgent) UsingUpstreamAgentSocks(socketFile string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHAgent ¶
type SSHAgent struct {
// agent server mode
LocalAgent *localAgent
// contains filtered or unexported fields
}
func (*SSHAgent) SignWithFlags ¶
func (s *SSHAgent) SignWithFlags(key ssh.PublicKey, data []byte, flags agent.SignatureFlags) (*ssh.Signature, error)
SignWithFlags generate signature a with public key from upstream and local agent
func (*SSHAgent) UsingLocalKeys ¶
UsingLocalKeys load local keys from files
func (*SSHAgent) UsingUpstreamAgentSocks ¶
UsingUpstreamAgentSocks connect upstream ssh agent socks, current only support one upstream agent socks
Click to show internal directories.
Click to hide internal directories.