MCPcopy Index your code
hub / github.com/smallstep/cli / AuthMethod

Method AuthMethod

internal/sshutil/agent.go:102–104  ·  view source on GitHub ↗

AuthMethod returns the ssh.Agent as an ssh.AuthMethod.

()

Source from the content-addressed store, hash-verified

100
101// AuthMethod returns the ssh.Agent as an ssh.AuthMethod.
102func (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.
107func (a *Agent) HasKeys(opts ...AgentOption) (bool, error) {

Callers 1

withDefaultAuthMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected