Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeInfoLister ¶
type NodeInfoLister interface { // Returns the list of NodeInfos. List() ([]*schedulernodeinfo.NodeInfo, error) // Returns the list of NodeInfos of nodes with pods with affinity terms. HavePodsWithAffinityList() ([]*schedulernodeinfo.NodeInfo, error) // Returns the NodeInfo of the given node name. Get(nodeName string) (*schedulernodeinfo.NodeInfo, error) }
NodeInfoLister interface represents anything that can list/get NodeInfo objects from node name.
type PodFilter ¶
PodFilter is a function to filter a pod. If pod passed return true else return false.
type PodLister ¶
type PodLister interface { // Returns the list of pods. List(labels.Selector) ([]*v1.Pod, error) // This is similar to "List()", but the returned slice does not // contain pods that don't pass `podFilter`. FilteredList(podFilter PodFilter, selector labels.Selector) ([]*v1.Pod, error) }
PodLister interface represents anything that can list pods for a scheduler.
Click to show internal directories.
Click to hide internal directories.