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

Function removeSSHKeys

command/ssh/logout.go:145–151  ·  view source on GitHub ↗
(agent *sshutil.Agent, subject string, opts ...sshutil.AgentOption)

Source from the content-addressed store, hash-verified

143}
144
145func removeSSHKeys(agent *sshutil.Agent, subject string, opts ...sshutil.AgentOption) (bool, error) {
146 if subject != "" {
147 // Remove if comment == subject
148 return agent.RemoveKeys(subject, opts...)
149 }
150 return agent.RemoveAllKeys(opts...)
151}

Callers 1

logoutActionFunction · 0.85

Calls 2

RemoveKeysMethod · 0.80
RemoveAllKeysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…