MCPcopy
hub / github.com/smallstep/cli / newOptions

Function newOptions

internal/sshutil/agent.go:20–26  ·  view source on GitHub ↗
(opts []AgentOption)

Source from the content-addressed store, hash-verified

18}
19
20func newOptions(opts []AgentOption) *options {
21 o := new(options)
22 for _, fn := range opts {
23 fn(o)
24 }
25 return o
26}
27
28// AgentOption is the type used for variadic options in Agent methods.
29type AgentOption func(o *options)

Callers 5

HasKeysMethod · 0.85
ListKeysMethod · 0.85
GetKeyMethod · 0.85
RemoveKeysMethod · 0.85
RemoveAllKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…