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.35.1 (latest)
- Published
- Feb 10, 2026
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 months ago –
Tools for package owners.