Documentation ¶
Index ¶
- Constants
- func CpuFrequencyToCores(size int64, unit string) int64
- func CpuFrequencyToString(size int64, unit string) string
- func FrequencyToHertzFrequency(size int64, unit string) int64
- func MemsizeToBinaryString(size int64, unit string) string
- func MemsizeToBytesize(size int64, unit string) int64
- func MemsizeToDecimalString(size int64, unit string) string
- func MemsizeToMaxPodCount(size int64, unit string) int64
Constants ¶
View Source
const ( BYTE = 1.0 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE PETABYTE )
View Source
const ( KILOBYTESUFFIX = "Ki" MEGABYTESUFFIX = "Mi" GIGABYTESUFFIX = "Gi" TERABYTESUFFIX = "Ti" PETABYTESUFFIX = "Pi" )
View Source
const ( ONE = 1.0 KILO = 1000.0 MEGA = KILO * KILO GIGA = MEGA * KILO TERA = GIGA * KILO PETA = TERA * KILO )
View Source
const ( KILOSUFFIX = "K" MEGASUFFIX = "M" GIGASUFFIX = "G" TERASUFFIX = "T" PETASUFFIX = "P" )
View Source
const ( MEMORYCUTOVER = 100 FREQUENCYCUTOVER = 10 )
View Source
const (
MINPODSIZE = 2 * GIGABYTE
)
Variables ¶
This section is empty.
Functions ¶
func CpuFrequencyToCores ¶
func CpuFrequencyToString ¶
func MemsizeToBinaryString ¶
func MemsizeToBytesize ¶
func MemsizeToDecimalString ¶
func MemsizeToMaxPodCount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.