resource

package
v0.7.0-devel Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGreaterKeys added in v0.4.0

func GetGreaterKeys(a, b corev1.ResourceList) []string

GetGreaterKeys returns the list of ResourceNames for which the value in a are greater than the value in b.

func MergeResourceListKeepFirst

func MergeResourceListKeepFirst(dst, src corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepFirst creates a new ResourceList holding all resource values from dst and any new values from src

func MergeResourceListKeepMax

func MergeResourceListKeepMax(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepMax creates a new ResourceList holding all the values from a and b and resolve potential conflicts by keeping the highest value.

func MergeResourceListKeepMin

func MergeResourceListKeepMin(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepMin creates a new ResourceList holding all the values from a and b and resolve potential conflicts by keeping the lowest value.

func MergeResourceListKeepSum

func MergeResourceListKeepSum(a, b corev1.ResourceList) corev1.ResourceList

MergeResourceListKeepSum creates a new ResourceList holding all the values from a and b and resolve potential conflicts by adding up the two values.

func QuantityToFloat added in v0.5.0

func QuantityToFloat(q *resource.Quantity) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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