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

Function WithSSHUserPolicy

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

WithSSHUserPolicy returns a context.Context with SSH user policy set.

(ctx context.Context)

Source from the content-addressed store, hash-verified

88
89// WithSSHUserPolicy returns a context.Context with SSH user policy set.
90func WithSSHUserPolicy(ctx context.Context) context.Context {
91 return context.WithValue(ctx, policyConfigurationTypeContextKey{}, sshUserPolicyType)
92}
93
94// IsSSHUserPolicy returns if context.Context has SSH user policy set.
95func IsSSHUserPolicy(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…