Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 144 for newFunc (0.14 sec)

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

    }
    
    // NewREST returns a RESTStorage object that will work against resource quotas.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.ResourceQuota{} },
    		NewListFunc:               func() runtime.Object { return &api.ResourceQuotaList{} },
    		DefaultQualifiedResource:  api.Resource("resourcequotas"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. pkg/registry/core/persistentvolume/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against persistent volumes.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.PersistentVolume{} },
    		NewListFunc:               func() runtime.Object { return &api.PersistentVolumeList{} },
    		PredicateFunc:             persistentvolume.MatchPersistentVolumes,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. pkg/registry/flowcontrol/prioritylevelconfiguration/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against priority level configuration.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &flowcontrol.PriorityLevelConfiguration{} },
    		NewListFunc:               func() runtime.Object { return &flowcontrol.PriorityLevelConfigurationList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 13 15:11:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. pkg/registry/admissionregistration/validatingadmissionpolicy/storage/storage.go

    	r := &REST{}
    	strategy := validatingadmissionpolicy.NewStrategy(authorizer, resourceResolver)
    	store := &genericregistry.Store{
    		NewFunc:     func() runtime.Object { return &admissionregistration.ValidatingAdmissionPolicy{} },
    		NewListFunc: func() runtime.Object { return &admissionregistration.ValidatingAdmissionPolicyList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 23:43:34 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// Indexers is used to accelerate the list operation, falls back to regular list
    	// operation if no indexer found.
    	Indexers *cache.Indexers
    
    	// NewFunc is a function that creates new empty object storing a object of type Type.
    	NewFunc func() runtime.Object
    
    	// NewList is a function that creates new empty object storing a list of
    	// objects of type Type.
    	NewListFunc func() runtime.Object
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. pkg/registry/core/persistentvolumeclaim/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against persistent volume claims.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.PersistentVolumeClaim{} },
    		NewListFunc:               func() runtime.Object { return &api.PersistentVolumeClaimList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    			tparams = r.tparamList()
    		}
    		sig := r.signature(nil, nil, tparams)
    		r.declare(types.NewFunc(pos, r.currPkg, name, sig))
    
    	case 'T', 'U':
    		// Types can be recursive. We need to setup a stub
    		// declaration before recurring.
    		obj := types.NewTypeName(pos, r.currPkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. pkg/registry/certificates/certificates/storage/storage.go

    // NewREST returns a registry which will store CertificateSigningRequest in the given helper.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *ApprovalREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &certificates.CertificateSigningRequest{} },
    		NewListFunc:               func() runtime.Object { return &certificates.CertificateSigningRequestList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  9. pkg/registry/batch/job/storage/storage.go

    	*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{} },
    		NewListFunc:               func() runtime.Object { return &batch.JobList{} },
    		PredicateFunc:             job.MatchJob,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: setupOpts.resourcePrefix,
    		KeyFunc:        setupOpts.keyFunc,
    		GetAttrsFunc:   GetPodAttrs,
    		NewFunc:        newPod,
    		NewListFunc:    newPodList,
    		IndexerFuncs:   setupOpts.indexerFuncs,
    		Codec:          codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    		Clock:          setupOpts.clock,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top