package
1.2.0-alpha.4
Repository: https://github.com/ericchiang/kubernetes.git
Documentation: pkg.go.dev

# Functions

MustParse turns the given string into a quantity or panics; for tests or others cases where you know the string is valid.
NewMilliQuantity returns a new Quantity representing the given value * 1/1000 in the given format.
NewQuantity returns a new Quantity representing the given value in the given format.
NewQuantityFlagValue returns an object that can be used to back a flag, pointing at the given Quantity variable.
ParseQuantity turns str into a Quantity, or returns an error.
QuantityFlag is a helper that makes a quantity flag (using standard flag package).

# Constants

e.g., 12Mi (12 * 2^20).
e.g., 12e6.
e.g., 12M (12 * 10^6).

# Variables

Errors that could happen while parsing a string.
No description provided by the author
No description provided by the author
The maximum value we can represent milli-units for.

# Structs

Quantity is a fixed-point representation of a number.

# Type aliases

Format lists the three possible formattings of a quantity.