Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBinUnit ¶
GetBinUnit defines unit for usage (Binary prefix) If multiple options are selected, returns a biggest unit
func GetImageUsage ¶ added in v0.1.1
func GetImageUsage(images []v1.ContainerImage) (int64, int)
GetImageUsage returns total image size and count
func GetSiUnit ¶
GetSiUnit defines unit for usage (SI prefix) If multiple options are selected, returns a biggest unit
func SetPercentageColor ¶
SetPercentageColor returns colored string
percentage < warn : Green
warn < percentage < crit : Yellow crit < percentage : Red
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.