AuthMethod returns the ssh.Agent as an ssh.AuthMethod.
()
| 100 | |
| 101 | // AuthMethod returns the ssh.Agent as an ssh.AuthMethod. |
| 102 | func (a *Agent) AuthMethod() ssh.AuthMethod { |
| 103 | return ssh.PublicKeysCallback(a.Signers) |
| 104 | } |
| 105 | |
| 106 | // HasKeys returns if a key filtered with the given options exists. |
| 107 | func (a *Agent) HasKeys(opts ...AgentOption) (bool, error) { |
no outgoing calls
no test coverage detected