Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 131 for restful (0.29 sec)

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

    	return func(req *restful.Request, res *restful.Response) {
    		handlers.DeleteCollection(r, checkBody, &scope, admit)(res.ResponseWriter, req.Request)
    	}
    }
    
    func restfulUpdateResource(r rest.Updater, 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)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/group.go

    	}
    
    	return &APIGroupHandler{
    		serializer: serializer,
    		group:      group,
    	}
    }
    
    func (s *APIGroupHandler) WebService() *restful.WebService {
    	mediaTypes, _ := negotiation.MediaTypesForSerializer(s.serializer)
    	ws := new(restful.WebService)
    	ws.Path(APIGroupPrefix + "/" + s.group.Name)
    	ws.Doc("get information of a group")
    	ws.Route(ws.GET("/").To(s.handle).
    		Doc("get information of a group").
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 20:38:08 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. pkg/kubelet/server/stats/handler.go

    func CreateHandlers(rootPath string, provider Provider, summaryProvider SummaryProvider) *restful.WebService {
    	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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/filters/cors.go

    */
    
    package filters
    
    import (
    	"net/http"
    	"regexp"
    	"strings"
    
    	"k8s.io/klog/v2"
    )
    
    // TODO: use restful.CrossOriginResourceSharing
    // See github.com/emicklei/go-restful/blob/master/examples/cors/restful-CORS-filter.go, and
    // github.com/emicklei/go-restful/blob/master/examples/basicauth/restful-basic-authentication.go
    // Or, for a more detailed implementation use https://github.com/martini-contrib/cors
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 13:59:10 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/wrapper.go

    }
    
    func (wrapped *WrappedHandler) restfulHandle(req *restful.Request, resp *restful.Response) {
    	wrapped.ServeHTTP(resp.ResponseWriter, req.Request)
    }
    
    func (wrapped *WrappedHandler) GenerateWebService(prefix string, returnType interface{}) *restful.WebService {
    	mediaTypes, _ := negotiation.MediaTypesForSerializer(wrapped.s)
    	ws := new(restful.WebService)
    	ws.Path(prefix)
    	ws.Doc("get available API versions")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/groupversion.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package endpoints
    
    import (
    	"path"
    	"time"
    
    	restful "github.com/emicklei/go-restful/v3"
    
    	apidiscoveryv2 "k8s.io/api/apidiscovery/v2"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. LICENSES/vendor/github.com/emicklei/go-restful/v3/LICENSE

    = vendor/github.com/emicklei/go-restful/v3 licensed under: =
    
    Copyright (c) 2012,2013 Ernest Micklei
    
    MIT License
    
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go

    //    WATCH: (n/a) -> NamedWatcher
    //    CREATE: (n/a) -> NamedCreater
    //    DELETE: Deleter -> NamedDeleter
    //    UPDATE: Update -> NamedUpdater
    
    // Storage is a generic interface for RESTful storage services.
    // Resources which are exported to the RESTful API of apiserver need to implement this interface. It is expected
    // that objects may implement any of the below interfaces.
    type Storage interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1beta1/types_swagger_doc_generated.go

    limitations under the License.
    */
    
    package v1beta1
    
    // This file contains a collection of methods that can be used from go-restful to
    // generate Swagger API documentation for its models. Please read this PR for more
    // information on the implementation: https://github.com/emicklei/go-restful/pull/215
    //
    // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/coordination/v1/types_swagger_doc_generated.go

    limitations under the License.
    */
    
    package v1
    
    // This file contains a collection of methods that can be used from go-restful to
    // generate Swagger API documentation for its models. Please read this PR for more
    // information on the implementation: https://github.com/emicklei/go-restful/pull/215
    //
    // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 22 00:51:25 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top