resources

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero added in v0.7.3

func IsZero(r resource.Quantity) bool

IsZero implements r.IsZero(). This method is provided to make some code a bit cleaner as the Quantity.IsZero() takes a pointer receiver and map index expressions aren't addressable, so it can't be called directly.

func LimitsForPods added in v0.5.3

func LimitsForPods(pods ...*v1.Pod) v1.ResourceList

LimitsForPods returns the total resources of a variadic list of podspecs

func Merge

func Merge(resources ...v1.ResourceList) v1.ResourceList

Merge the resources from the variadic into a single v1.ResourceList

func Quantity

func Quantity(value string) *resource.Quantity

Quantity parses the string value into a *Quantity

func RequestsForPods

func RequestsForPods(pods ...*v1.Pod) v1.ResourceList

RequestsForPods returns the total resources of a variadic list of podspecs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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