- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AddWarningsHandler (0.33 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/warning/warning.go
*/ package warning import ( restful "github.com/emicklei/go-restful/v3" "k8s.io/apiserver/pkg/warning" ) // AddWarningsHandler returns a handler that adds the provided warnings to all requests, // then delegates to the provided handler. func AddWarningsHandler(handler restful.RouteFunction, warnings []string) restful.RouteFunction { if len(warnings) == 0 { return handler }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 09 18:11:41 UTC 2022 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
} else { handler = metrics.InstrumentRouteFunc(action.Verb, group, version, resource, subresource, requestScope, metrics.APIServerComponent, deprecated, removedRelease, handler) } handler = utilwarning.AddWarningsHandler(handler, warnings) doc := "read the specified " + kind if isSubresource { doc = "read " + subresource + " of the specified " + kind } route := ws.GET(action.Path).To(handler).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0)