Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for fakecache (0.33 sec)

  1. pkg/kubelet/container/testing/fake_cache.go

    	"k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    type fakeCache struct {
    	runtime container.Runtime
    }
    
    func NewFakeCache(runtime container.Runtime) container.Cache {
    	return &fakeCache{runtime: runtime}
    }
    
    func (c *fakeCache) Get(id types.UID) (*container.PodStatus, error) {
    	return c.runtime.GetPodStatus(context.Background(), id, "", "")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 14:36:16 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/fake/fake_cache.go

    Mengjiao Liu <******@****.***> 1679485684 +0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/runtime/mpagecache.go

    import (
    	"runtime/internal/sys"
    	"unsafe"
    )
    
    const pageCachePages = 8 * unsafe.Sizeof(pageCache{}.cache)
    
    // pageCache represents a per-p cache of pages the allocator can
    // allocate from without a lock. More specifically, it represents
    // a pageCachePages*pageSize chunk of memory with 0 or more free
    // pages in it.
    type pageCache struct {
    	base  uintptr // base address of the chunk
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. pilot/pkg/config/aggregate/config.go

    	if err != nil {
    		return nil, err
    	}
    	return &storeCache{
    		ConfigStore: store,
    		caches:      caches,
    	}, nil
    }
    
    // MakeCache creates an aggregate config store cache from several config store
    // caches.
    func MakeCache(caches []model.ConfigStoreController) (model.ConfigStoreController, error) {
    	return MakeWriteableCache(caches, nil)
    }
    
    type store struct {
    	// schemas is the unified
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 26 01:14:27 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. pilot/pkg/config/aggregate/config_test.go

    	controller2 := memory.NewController(store2)
    	go controller2.Run(stop)
    
    	stores := []model.ConfigStoreController{controller1, controller2}
    
    	cacheStore, err := MakeCache(stores)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	t.Run("it registers an event handler", func(t *testing.T) {
    		handled := atomic.NewBool(false)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top