Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceScheduler ¶
type DeviceScheduler interface { // add node and resources AddNode(nodeName string, nodeInfo *types.NodeInfo) // remove node RemoveNode(nodeName string) // see if pod fits on node & return device score PodFitsDevice(nodeInfo *types.NodeInfo, podInfo *types.PodInfo, fillAllocateFrom bool) (bool, []PredicateFailureReason, float64) // allocate resources PodAllocate(nodeInfo *types.NodeInfo, podInfo *types.PodInfo) error // take resources from node TakePodResources(*types.NodeInfo, *types.PodInfo) error // return resources to node ReturnPodResources(*types.NodeInfo, *types.PodInfo) error // GetName returns the name of a device GetName() string // Tells whether group scheduler is being used? UsingGroupScheduler() bool }
used by scheduler
type PredicateFailureReason ¶
Click to show internal directories.
Click to hide internal directories.