Documentation ¶
Index ¶
- func GetGreaterKeys(a, b corev1.ResourceList) []string
- func MergeResourceListKeepFirst(dst, src corev1.ResourceList) corev1.ResourceList
- func MergeResourceListKeepMax(a, b corev1.ResourceList) corev1.ResourceList
- func MergeResourceListKeepMin(a, b corev1.ResourceList) corev1.ResourceList
- func MergeResourceListKeepSum(a, b corev1.ResourceList) corev1.ResourceList
- func QuantityToFloat(q *resource.Quantity) float64
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
Types ¶
This section is empty.