shared

package
v0.0.0-...-075ee23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL