package fake
import "k8s.io/kubernetes/pkg/scheduler/backend/cache/fake"
Index ¶
Types ¶
type Cache ¶
type Cache struct { internalcache.Cache AssumeFunc func(*v1.Pod) ForgetFunc func(*v1.Pod) IsAssumedPodFunc func(*v1.Pod) bool GetPodFunc func(*v1.Pod) *v1.Pod }
Cache is used for testing
func (*Cache) AssumePod ¶
AssumePod allows to mock this method for testing.
func (*Cache) ForgetPod ¶
ForgetPod allows to mock this method for testing.
func (*Cache) GetPod ¶
GetPod allows to mock this method for testing.
func (*Cache) IsAssumedPod ¶
IsAssumedPod allows to mock this method for testing.
Source Files ¶
fake_cache.go
- Version
- v1.34.0-rc.0
- Published
- Aug 6, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 33 seconds ago –
Tools for package owners.