cadvisor: github.com/google/cadvisor/utils/sysfs/fakesysfs Index | Files

package fakesysfs

import "github.com/google/cadvisor/utils/sysfs/fakesysfs"

Index

Package Files

fake.go

type FakeSysFs Uses

type FakeSysFs struct {
    // contains filtered or unexported fields
}

func (*FakeSysFs) GetBlockDeviceNumbers Uses

func (fs *FakeSysFs) GetBlockDeviceNumbers(name string) (string, error)

func (*FakeSysFs) GetBlockDeviceScheduler Uses

func (fs *FakeSysFs) GetBlockDeviceScheduler(name string) (string, error)

func (*FakeSysFs) GetBlockDeviceSize Uses

func (fs *FakeSysFs) GetBlockDeviceSize(name string) (string, error)

func (*FakeSysFs) GetBlockDevices Uses

func (fs *FakeSysFs) GetBlockDevices() ([]os.FileInfo, error)

func (*FakeSysFs) GetCPUPhysicalPackageID Uses

func (fs *FakeSysFs) GetCPUPhysicalPackageID(cpuPath string) (string, error)

func (*FakeSysFs) GetCPUsPaths Uses

func (fs *FakeSysFs) GetCPUsPaths(cpusPath string) ([]string, error)

func (*FakeSysFs) GetCacheInfo Uses

func (fs *FakeSysFs) GetCacheInfo(cpu int, cache string) (sysfs.CacheInfo, error)

func (*FakeSysFs) GetCaches Uses

func (fs *FakeSysFs) GetCaches(id int) ([]os.FileInfo, error)

func (*FakeSysFs) GetCoreID Uses

func (fs *FakeSysFs) GetCoreID(coreIDPath string) (string, error)

func (*FakeSysFs) GetHugePagesInfo Uses

func (fs *FakeSysFs) GetHugePagesInfo(hugepagesDirectory string) ([]os.FileInfo, error)

func (*FakeSysFs) GetHugePagesNr Uses

func (fs *FakeSysFs) GetHugePagesNr(hugepagesDirectory string, hugePageName string) (string, error)

func (*FakeSysFs) GetMemInfo Uses

func (fs *FakeSysFs) GetMemInfo(nodePath string) (string, error)

func (*FakeSysFs) GetNetworkAddress Uses

func (fs *FakeSysFs) GetNetworkAddress(name string) (string, error)

func (*FakeSysFs) GetNetworkDevices Uses

func (fs *FakeSysFs) GetNetworkDevices() ([]os.FileInfo, error)

func (*FakeSysFs) GetNetworkMtu Uses

func (fs *FakeSysFs) GetNetworkMtu(name string) (string, error)

func (*FakeSysFs) GetNetworkSpeed Uses

func (fs *FakeSysFs) GetNetworkSpeed(name string) (string, error)

func (*FakeSysFs) GetNetworkStatValue Uses

func (fs *FakeSysFs) GetNetworkStatValue(name string, stat string) (uint64, error)

func (*FakeSysFs) GetNodesPaths Uses

func (fs *FakeSysFs) GetNodesPaths() ([]string, error)

func (*FakeSysFs) GetSystemUUID Uses

func (fs *FakeSysFs) GetSystemUUID() (string, error)

func (*FakeSysFs) IsCPUOnline Uses

func (fs *FakeSysFs) IsCPUOnline(dir string) bool

func (*FakeSysFs) SetCPUsPaths Uses

func (fs *FakeSysFs) SetCPUsPaths(paths map[string][]string, err error)

func (*FakeSysFs) SetCacheInfo Uses

func (fs *FakeSysFs) SetCacheInfo(cache sysfs.CacheInfo)

func (*FakeSysFs) SetCoreThreads Uses

func (fs *FakeSysFs) SetCoreThreads(coreThread map[string]string, coreThreadErrors map[string]error)

func (*FakeSysFs) SetEntryName Uses

func (fs *FakeSysFs) SetEntryName(name string)

func (*FakeSysFs) SetHugePages Uses

func (fs *FakeSysFs) SetHugePages(hugePages []os.FileInfo, err error)

func (*FakeSysFs) SetHugePagesNr Uses

func (fs *FakeSysFs) SetHugePagesNr(hugePagesNr map[string]string, err error)

func (*FakeSysFs) SetMemory Uses

func (fs *FakeSysFs) SetMemory(memTotal string, err error)

func (*FakeSysFs) SetNodesPaths Uses

func (fs *FakeSysFs) SetNodesPaths(paths []string, err error)

func (*FakeSysFs) SetOnlineCPUs Uses

func (fs *FakeSysFs) SetOnlineCPUs(online map[string]interface{})

func (*FakeSysFs) SetPhysicalPackageIDs Uses

func (fs *FakeSysFs) SetPhysicalPackageIDs(physicalPackageIDs map[string]string, physicalPackageIDErrors map[string]error)

type FileInfo Uses

type FileInfo struct {
    EntryName string
}

If we extend sysfs to support more interfaces, it might be worth making this a mock instead of a fake.

func (*FileInfo) IsDir Uses

func (i *FileInfo) IsDir() bool

func (*FileInfo) ModTime Uses

func (i *FileInfo) ModTime() time.Time

func (*FileInfo) Mode Uses

func (i *FileInfo) Mode() os.FileMode

func (*FileInfo) Name Uses

func (i *FileInfo) Name() string

func (*FileInfo) Size Uses

func (i *FileInfo) Size() int64

func (*FileInfo) Sys Uses

func (i *FileInfo) Sys() interface{}

Package fakesysfs imports 4 packages (graph). Updated 2020-09-08. Refresh now. Tools for package owners.