(r *http.Request)
| 15 | type provisionerDaemonContextKey struct{} |
| 16 | |
| 17 | func ProvisionerDaemonAuthenticated(r *http.Request) bool { |
| 18 | proxy, ok := r.Context().Value(provisionerDaemonContextKey{}).(bool) |
| 19 | return ok && proxy |
| 20 | } |
| 21 | |
| 22 | type ExtractProvisionerAuthConfig struct { |
| 23 | DB database.Store |
no test coverage detected