Documentation ¶
Index ¶
- type FakeSysFs
- func (fs *FakeSysFs) GetBlockDeviceNumbers(name string) (string, error)
- func (fs *FakeSysFs) GetBlockDeviceScheduler(name string) (string, error)
- func (fs *FakeSysFs) GetBlockDeviceSize(name string) (string, error)
- func (fs *FakeSysFs) GetBlockDevices() ([]os.FileInfo, error)
- func (fs *FakeSysFs) GetCPUPhysicalPackageID(cpuPath string) (string, error)
- func (fs *FakeSysFs) GetCPUsPaths(cpusPath string) ([]string, error)
- func (fs *FakeSysFs) GetCacheInfo(cpu int, cache string) (sysfs.CacheInfo, error)
- func (fs *FakeSysFs) GetCaches(id int) ([]os.FileInfo, error)
- func (fs *FakeSysFs) GetCoreID(coreIDPath string) (string, error)
- func (fs *FakeSysFs) GetHugePagesInfo(hugepagesDirectory string) ([]os.FileInfo, error)
- func (fs *FakeSysFs) GetHugePagesNr(hugepagesDirectory string, hugePageName string) (string, error)
- func (fs *FakeSysFs) GetMemInfo(nodePath string) (string, error)
- func (fs *FakeSysFs) GetNetworkAddress(name string) (string, error)
- func (fs *FakeSysFs) GetNetworkDevices() ([]os.FileInfo, error)
- func (fs *FakeSysFs) GetNetworkMtu(name string) (string, error)
- func (fs *FakeSysFs) GetNetworkSpeed(name string) (string, error)
- func (fs *FakeSysFs) GetNetworkStatValue(name string, stat string) (uint64, error)
- func (fs *FakeSysFs) GetNodesPaths() ([]string, error)
- func (fs *FakeSysFs) GetSystemUUID() (string, error)
- func (fs *FakeSysFs) IsCPUOnline(dir string) bool
- func (fs *FakeSysFs) SetCPUsPaths(paths map[string][]string, err error)
- func (fs *FakeSysFs) SetCacheInfo(cache sysfs.CacheInfo)
- func (fs *FakeSysFs) SetCoreThreads(coreThread map[string]string, coreThreadErrors map[string]error)
- func (fs *FakeSysFs) SetEntryName(name string)
- func (fs *FakeSysFs) SetHugePages(hugePages []os.FileInfo, err error)
- func (fs *FakeSysFs) SetHugePagesNr(hugePagesNr map[string]string, err error)
- func (fs *FakeSysFs) SetMemory(memTotal string, err error)
- func (fs *FakeSysFs) SetNodesPaths(paths []string, err error)
- func (fs *FakeSysFs) SetOnlineCPUs(online map[string]interface{})
- func (fs *FakeSysFs) SetPhysicalPackageIDs(physicalPackageIDs map[string]string, physicalPackageIDErrors map[string]error)
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSysFs ¶
type FakeSysFs struct {
// contains filtered or unexported fields
}
func (*FakeSysFs) GetBlockDeviceNumbers ¶
func (*FakeSysFs) GetBlockDeviceScheduler ¶
func (*FakeSysFs) GetBlockDeviceSize ¶
func (*FakeSysFs) GetCPUPhysicalPackageID ¶ added in v0.37.0
func (*FakeSysFs) GetCPUsPaths ¶ added in v0.37.0
func (*FakeSysFs) GetCacheInfo ¶
func (*FakeSysFs) GetHugePagesInfo ¶ added in v0.37.0
func (*FakeSysFs) GetHugePagesNr ¶ added in v0.37.0
func (*FakeSysFs) GetMemInfo ¶ added in v0.37.0
func (*FakeSysFs) GetNetworkAddress ¶
func (*FakeSysFs) GetNetworkDevices ¶
func (*FakeSysFs) GetNetworkSpeed ¶
func (*FakeSysFs) GetNetworkStatValue ¶
func (*FakeSysFs) GetNodesPaths ¶ added in v0.37.0
func (*FakeSysFs) GetSystemUUID ¶
func (*FakeSysFs) IsCPUOnline ¶ added in v0.37.0
func (*FakeSysFs) SetCPUsPaths ¶ added in v0.37.0
func (*FakeSysFs) SetCacheInfo ¶
func (*FakeSysFs) SetCoreThreads ¶ added in v0.37.0
func (*FakeSysFs) SetEntryName ¶
func (*FakeSysFs) SetHugePages ¶ added in v0.37.0
func (*FakeSysFs) SetHugePagesNr ¶ added in v0.37.0
func (*FakeSysFs) SetNodesPaths ¶ added in v0.37.0
func (*FakeSysFs) SetOnlineCPUs ¶ added in v0.37.0
Click to show internal directories.
Click to hide internal directories.