Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newCachingObject (0.35 sec)

  1. 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)
  2. 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)
Back to top