WithSSHUserPolicy returns a context.Context with SSH user policy set.
(ctx context.Context)
| 88 | |
| 89 | // WithSSHUserPolicy returns a context.Context with SSH user policy set. |
| 90 | func 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. |
| 95 | func IsSSHUserPolicy(ctx context.Context) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…