Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 119 for NewREST (0.63 sec)

  1. pkg/registry/core/configmap/storage/storage.go

    	"k8s.io/kubernetes/pkg/registry/core/configmap"
    )
    
    // REST implements a RESTStorage for ConfigMap
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work with ConfigMap objects.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.ConfigMap{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. pkg/registry/core/endpoint/storage/storage.go

    	"k8s.io/kubernetes/pkg/registry/core/endpoint"
    )
    
    // REST implements a RESTStorage for endpoints.
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against endpoints.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.Endpoints{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. pkg/registry/networking/networkpolicy/storage/storage.go

    )
    
    // REST implements a RESTStorage for NetworkPolicies against etcd.
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against NetworkPolicies.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &networkingapi.NetworkPolicy{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage/storage.go

    )
    
    // REST implements a RESTStorage for mutatingWebhookConfiguration against etcd
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against mutatingWebhookConfiguration.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 13 15:10:55 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. pkg/registry/autoscaling/rest/storage_autoscaling.go

    	if resource := "horizontalpodautoscalers"; apiResourceConfigSource.ResourceEnabled(autoscalingapiv1.SchemeGroupVersion.WithResource(resource)) {
    		hpaStorage, hpaStatusStorage, err := horizontalpodautoscalerstore.NewREST(restOptionsGetter)
    		if err != nil {
    			return storage, err
    		}
    		storage[resource] = hpaStorage
    		storage[resource+"/status"] = hpaStatusStorage
    	}
    
    	return storage, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 29 08:51:48 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. pkg/registry/batch/job/storage/storage.go

    // REST implements a RESTStorage for jobs against etcd
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against Jobs.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &batch.Job{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  7. pkg/registry/batch/rest/storage_batch.go

    	storage := map[string]rest.Storage{}
    
    	// jobs
    	if resource := "jobs"; apiResourceConfigSource.ResourceEnabled(batchapiv1.SchemeGroupVersion.WithResource(resource)) {
    		jobsStorage, jobsStatusStorage, err := jobstore.NewREST(restOptionsGetter)
    		if err != nil {
    			return storage, err
    		}
    		storage[resource] = jobsStorage
    		storage[resource+"/status"] = jobsStatusStorage
    	}
    
    	// cronjobs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 28 06:08:31 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. pkg/registry/authorization/selfsubjectrulesreview/rest.go

    )
    
    // REST implements a RESTStorage for selfsubjectrulesreview.
    type REST struct {
    	ruleResolver authorizer.RuleResolver
    }
    
    // NewREST returns a RESTStorage object that will work against selfsubjectrulesreview.
    func NewREST(ruleResolver authorizer.RuleResolver) *REST {
    	return &REST{ruleResolver}
    }
    
    // NamespaceScoped fulfill rest.Scoper
    func (r *REST) NamespaceScoped() bool {
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  9. pkg/registry/resource/resourceclaim/storage/storage.go

    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    )
    
    // REST implements a RESTStorage for ResourceClaims.
    type REST struct {
    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against ResourceClaims.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &resource.ResourceClaim{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  10. pkg/registry/authentication/selfsubjectreview/rest.go

    	rest.NamespaceScopedStrategy
    	rest.Scoper
    	rest.Storage
    } = &REST{}
    
    // REST implements a RESTStorage for selfsubjectreviews.
    type REST struct {
    }
    
    // NewREST returns a RESTStorage object that will work against selfsubjectreviews.
    func NewREST() *REST {
    	return &REST{}
    }
    
    // NamespaceScoped fulfill rest.Scoper
    func (r *REST) NamespaceScoped() bool {
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top