Documentation ¶
Overview ¶
Package memory regroups collecting information about the memory
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct { // TotalBytes is the total memory for the host in byte TotalBytes uint64 // SwapTotalBytes is the swap memory size in byte (Unix only) SwapTotalBytes uint64 }
Memory holds memory metadata about the host
func Get ¶
Get returns a Memory struct already initialized, a list of warnings and an error. The method will try to collect as much metadata as possible, an error is returned if nothing could be collected. The list of warnings contains errors if some metadata could not be collected.
Click to show internal directories.
Click to hide internal directories.