package machine
import "github.com/google/cadvisor/machine"
The machine package contains functions that extract machine-level specs.
Index ¶
- func ContainerOsVersion() string
- func GetClockSpeed(procInfo []byte) (uint64, error)
- func GetMachineMemoryCapacity() (uint64, error)
- func GetMachineSwapCapacity() (uint64, error)
- func GetTopology(sysFs sysfs.SysFs, cpuinfo string) ([]info.Node, int, error)
- func Info(sysFs sysfs.SysFs, fsInfo fs.FsInfo, inHostNamespace bool) (*info.MachineInfo, error)
- func KernelVersion() string
Functions ¶
func ContainerOsVersion ¶
func ContainerOsVersion() string
func GetClockSpeed ¶
GetClockSpeed returns the CPU clock speed, given a []byte formatted as the /proc/cpuinfo file.
func GetMachineMemoryCapacity ¶
GetMachineMemoryCapacity returns the machine's total memory from /proc/meminfo. Returns the total memory capacity as an uint64 (number of bytes).
func GetMachineSwapCapacity ¶
GetMachineSwapCapacity returns the machine's total swap from /proc/meminfo. Returns the total swap capacity as an uint64 (number of bytes).
func GetTopology ¶
func Info ¶
func KernelVersion ¶
func KernelVersion() string
Source Files ¶
- Version
- v0.26.2
- Published
- Nov 1, 2017
- Platform
- darwin/amd64
- Imports
- 17 packages
- Last checked
- 1 day ago –
Tools for package owners.