Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RouteFunction (0.24 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/warning/warning.go

    )
    
    // 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
    	}
    
    	return func(req *restful.Request, res *restful.Response) {
    		ctx := req.Request.Context()
    		for _, msg := range warnings {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    	return func(req *restful.Request, res *restful.Response) {
    		handlers.ListResource(r, rw, &scope, forceWatch, minRequestTimeout)(res.ResponseWriter, req.Request)
    	}
    }
    
    func restfulCreateNamedResource(r rest.NamedCreater, scope handlers.RequestScope, admit admission.Interface) restful.RouteFunction {
    	return func(req *restful.Request, res *restful.Response) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. pkg/routes/openidmetadata.go

    			Returns(http.StatusOK, "OK", ""))
    	c.Add(jwks)
    }
    
    // fromStandard provides compatibility between the standard (net/http) handler signature and the restful signature.
    func fromStandard(h http.HandlerFunc) restful.RouteFunction {
    	return func(req *restful.Request, resp *restful.Response) {
    		h(resp, req.Request)
    	}
    }
    
    func (s *OpenIDMetadataServer) serveConfiguration(w http.ResponseWriter, req *http.Request) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go

    // the go-restful RouteFunction instead of a HandlerFunc plus some Kubernetes endpoint specific information.
    func InstrumentRouteFunc(verb, group, version, resource, subresource, scope, component string, deprecated bool, removedRelease string, routeFunc restful.RouteFunction) restful.RouteFunction {
    	return restful.RouteFunction(func(req *restful.Request, response *restful.Response) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 35K bytes
    - Viewed (0)
  5. pkg/kubelet/server/stats/handler.go

    	h := &handler{provider, summaryProvider}
    
    	ws := &restful.WebService{}
    	ws.Path(rootPath).
    		Produces(restful.MIME_JSON)
    
    	endpoints := []struct {
    		path    string
    		handler restful.RouteFunction
    	}{
    		{"/summary", h.handleSummary},
    	}
    
    	for _, e := range endpoints {
    		for _, method := range []string{"GET", "POST"} {
    			ws.Route(ws.
    				Method(method).
    				Path(e.path).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top