Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUAvailable ¶
func CPUAvailable() float64
CPUAvailable returns the available cpu of this node.
func InContainer ¶
func InContainer() bool
InContainer returns if the process is running in a container.
func MemoryAvailable ¶
func MemoryAvailable() uint64
MemoryAvailable returns the available size of memory of this node.
func MemoryTotal ¶
func MemoryTotal() uint64
MemoryTotal returns the total size of memory of this node.
func MemoryUsed ¶
func MemoryUsed() uint64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.