resources

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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