Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GroupResource (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// An underlying storage.Interface.
    	Storage storage.Interface
    
    	// An underlying storage.Versioner.
    	Versioner storage.Versioner
    
    	// The GroupResource the cacher is caching. Used for disambiguating *unstructured.Unstructured (CRDs) in logging
    	// and metrics.
    	GroupResource schema.GroupResource
    
    	// The Cache will be caching objects of a given Type and assumes that they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    )
    
    func newTestCacherWithoutSyncing(s storage.Interface) (*Cacher, storage.Versioner, error) {
    	prefix := "pods"
    	config := Config{
    		Storage:        s,
    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: prefix,
    		KeyFunc:        func(obj runtime.Object) (string, error) { return storage.NamespaceKeyFunc(prefix, obj) },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    					t.Fatalf("unexpected second conflict")
    				}
    				sawConflict = true
    				// simulated stale object - return a conflict
    				return nil, apierrors.NewConflict(example.SchemeGroupVersion.WithResource("pods").GroupResource(), "name", errors.New("foo"))
    			}
    			pod.Generation = 3
    			return pod, nil
    		}),
    		originalPod,
    	)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
Back to top