Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceList ¶
func NewResourceList() corev1.ResourceList
func Sum ¶
func Sum(aggr corev1.ResourceList, rlist ...corev1.ResourceList)
Types ¶
type ResourceList ¶
type ResourceList struct { // CPU is the number of requested cpus. Due to the slurm limitations, this can be only integer CPU *int64 // Memory is the number of requests MBs of memory. Memory *int64 }
ResourceList is a conversion between Kubernetes and Slurm Resource Request abstractions
func ResourceListToStruct ¶
func ResourceListToStruct(list corev1.ResourceList) ResourceList
Click to show internal directories.
Click to hide internal directories.