Versions in this module Expand all Collapse all v0 v0.60.0 Jun 20, 2026 Changes in this version + const CPUBookID + const CPUCoreID + const CPUDrawerID + const CPUPhysicalPackageID + const HugePagesNrFile + func GetUniqueCPUPropertyCount(cpuAttributesPath string, propertyName string) int + type CacheInfo struct + Cpus int + Id int + Level int + Size uint64 + Type string + type SysFs interface + GetBlockDeviceNumbers func(string) (string, error) + GetBlockDeviceScheduler func(string) (string, error) + GetBlockDeviceSize func(string) (string, error) + GetBlockDevices func() ([]os.FileInfo, error) + GetBookID func(cpuPath string) (string, error) + GetCPUPhysicalPackageID func(cpuPath string) (string, error) + GetCPUsPaths func(cpusPath string) ([]string, error) + GetCacheInfo func(cpu int, cache string) (CacheInfo, error) + GetCaches func(id int) ([]os.FileInfo, error) + GetCoreID func(coreIDFilePath string) (string, error) + GetDistances func(string) (string, error) + GetDrawerID func(cpuPath string) (string, error) + GetHugePagesInfo func(hugePagesDirectory string) ([]os.FileInfo, error) + GetHugePagesNr func(hugePagesDirectory string, hugePageName string) (string, error) + GetMemInfo func(nodeDir string) (string, error) + GetNetworkAddress func(string) (string, error) + GetNetworkDevices func() ([]os.FileInfo, error) + GetNetworkMtu func(string) (string, error) + GetNetworkSpeed func(string) (string, error) + GetNetworkStatValue func(dev string, stat string) (uint64, error) + GetNodesPaths func() ([]string, error) + GetSystemUUID func() (string, error) + IsBlockDeviceHidden func(string) (bool, error) + IsCPUOnline func(dir string) bool + func NewRealSysFs() SysFs