Documentation ¶
Index ¶
- func ByteToString(bytes int64) string
- func CheckRespectMaxNS(spec v1.ResourceList, stats types.ClusterStat, settings *types.Parameters) bool
- func CheckSpec(memReq int64, cpuReq int64, settings *types.Parameters) (claimFit bool, spec v1.ResourceList)
- func DivideAsPercent(a int64, b int64) string
- func LabelsFromString(rawLabels string) (labels map[string]string)
- func LabelsToString(labels map[string]string) string
- func ResourceListToString(list v1.ResourceList) string
- func Result(stats types.ClusterStat, settings *types.Parameters) string
- func SpecFromIntToString(ram int64, cpu int64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteToString ¶
func CheckRespectMaxNS ¶
func CheckRespectMaxNS(spec v1.ResourceList, stats types.ClusterStat, settings *types.Parameters) bool
func CheckSpec ¶
func CheckSpec(memReq int64, cpuReq int64, settings *types.Parameters) (claimFit bool, spec v1.ResourceList)
func DivideAsPercent ¶
func LabelsFromString ¶
func LabelsToString ¶
func ResourceListToString ¶
func ResourceListToString(list v1.ResourceList) string
func Result ¶
func Result(stats types.ClusterStat, settings *types.Parameters) string
func SpecFromIntToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.