MCPcopy Create free account
hub / github.com/smallstep/cli / WithSSHHostPolicy

Function WithSSHHostPolicy

command/ca/policy/policycontext/context.go:79–81  ·  view source on GitHub ↗

WithSSHHostPolicy returns a context.Context with SSH host policy set.

(ctx context.Context)

Source from the content-addressed store, hash-verified

77
78// WithSSHHostPolicy returns a context.Context with SSH host policy set.
79func WithSSHHostPolicy(ctx context.Context) context.Context {
80 return context.WithValue(ctx, policyConfigurationTypeContextKey{}, sshHostPolicyType)
81}
82
83// IsSSHHostPolicy returns if the context.Context has SSH host policy set.
84func IsSSHHostPolicy(ctx context.Context) bool {

Callers 1

CommandFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…