- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newCachingObject (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object_test.go
if e.expectedError != nil { return e.expectedError } _, err := w.Write([]byte(e.expectedResult)) return err } func TestCachingObject(t *testing.T) { object, err := newCachingObject(&v1.Pod{}) if err != nil { t.Fatalf("couldn't create cachingObject: %v", err) } encoders := []*mockEncoder{ newMockEncoder("1", "result1", nil), newMockEncoder("2", "", fmt.Errorf("mock error")),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 23 15:26:38 UTC 2022 - 5.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object.go
// The atomic.Value type is used to allow fast-path. serializations atomic.Value } // newCachingObject performs a deep copy of the given object and wraps it // into a cachingObject. // An error is returned if it's not possible to cast the object to // metav1.Object type. func newCachingObject(object runtime.Object) (*cachingObject, error) { if obj, ok := object.(metaRuntimeInterface); ok { result := &cachingObject{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 18:03:48 UTC 2023 - 12.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
// This is rare enough that it doesn't justify making deep-copy of the // object (done by newCachingObject) every time. case watch.Deleted: // Don't wrap Object for delete events - these are not to deliver any // events. Only wrap PrevObject. if object, err := newCachingObject(event.PrevObject); err == nil { // Update resource version of the 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)