Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCacheHandlerWrapper ¶
func MakeCacheHandlerWrapper() *handlerWrapper
Types ¶
type CacheHandler ¶
type CacheHandler interface { SchedulerName() string SchedulerType() string SubCluster() string SwitchType() framework.SwitchType // TODO: Revisit this and split the judgment section on whether storage needs to be enabled. IsStoreEnabled(string) bool TTL() time.Duration Period() time.Duration StopCh() <-chan struct{} PodLister() corelister.PodLister PodInformer() coreinformers.PodInformer // GetNodeInfo return the NodeInfo before NodeStore handle the event. GetNodeInfo(string) framework.NodeInfo // GetPodState return the PodState before PodStore handle the event. GetPodState(string) (*framework.CachePodState, bool) SetNodeHandler(NodeHandler) SetPodHandler(PodHandler) PodOp(pod *v1.Pod, isAdd bool, skippStores sets.String) error SetPodOpFunc(PodOpFunc) }
type NodeHandler ¶
type PodHandler ¶
type PodHandler func(string) (*framework.CachePodState, bool)
Click to show internal directories.
Click to hide internal directories.