Documentation ¶
Index ¶
Constants ¶
View Source
const NET_SPEED = "NET_SPEED"
Variables ¶
This section is empty.
Functions ¶
func GetIfaceSpeed ¶
GetIfaceSpeed get speed of ifName from /sys/class/net/$ifName/speed, or environment
func GetMemoryCgroupLimitByUsage ¶
GetMemoryCgroupLimitByUsage check limit value and current usage value for memory cgroup, and will change limit value if necessary
func GetTotalResource ¶
func GetTotalResource() (v1.ResourceList, error)
GetTotalResource return node capacity resource
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.