Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVertex ¶
func CheckVertex( slotNeeds *types.ResourceNeeds, vtx *types.Vertex, ) bool
CheckVertex ensures that subsystem needs are satisfied (and updates them) and if so, includes the resource type in the count
func GetResourceNeeds ¶
func GetResourceNeeds(resources *v1.Resource) *types.ResourceNeeds
getResourceNeeds flattens a resource requirement into names This is intended to just check subsystem metadata for one resource type (e.g., node) before we have dived into a slot
func GetSlotNeeds ¶
func GetSlotNeeds(resources *v1.Resource) *types.ResourceNeeds
getSlotNeeds converts the string values into SlotNeeds unlike ResourceNeeds, for a slot we also have a counter for different types, and the total number we have found so far.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.