WithSSHHostPolicy returns a context.Context with SSH host policy set.
(ctx context.Context)
| 77 | |
| 78 | // WithSSHHostPolicy returns a context.Context with SSH host policy set. |
| 79 | func 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. |
| 84 | func IsSSHHostPolicy(ctx context.Context) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…