package fakesysfs
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/google/cadvisor/utils/sysfs/fakesysfs"
Index ¶
- type FakeSysFs
- func (self *FakeSysFs) GetBlockDeviceNumbers(name string) (string, error)
- func (self *FakeSysFs) GetBlockDeviceScheduler(name string) (string, error)
- func (self *FakeSysFs) GetBlockDeviceSize(name string) (string, error)
- func (self *FakeSysFs) GetBlockDevices() ([]os.FileInfo, error)
- func (self *FakeSysFs) GetCacheInfo(cpu int, cache string) (sysfs.CacheInfo, error)
- func (self *FakeSysFs) GetCaches(id int) ([]os.FileInfo, error)
- func (self *FakeSysFs) GetNetworkAddress(name string) (string, error)
- func (self *FakeSysFs) GetNetworkDevices() ([]os.FileInfo, error)
- func (self *FakeSysFs) GetNetworkMtu(name string) (string, error)
- func (self *FakeSysFs) GetNetworkSpeed(name string) (string, error)
- func (self *FakeSysFs) GetNetworkStatValue(name string, stat string) (uint64, error)
- func (self *FakeSysFs) GetSystemUUID() (string, error)
- func (self *FakeSysFs) SetCacheInfo(cache sysfs.CacheInfo)
- func (self *FakeSysFs) SetEntryName(name string)
- type FileInfo
Types ¶
type FakeSysFs ¶
type FakeSysFs struct {
// contains filtered or unexported fields
}
func (*FakeSysFs) GetBlockDeviceNumbers ¶
func (*FakeSysFs) GetBlockDeviceScheduler ¶
func (*FakeSysFs) GetBlockDeviceSize ¶
func (*FakeSysFs) GetBlockDevices ¶
func (*FakeSysFs) GetCacheInfo ¶
func (*FakeSysFs) GetCaches ¶
func (*FakeSysFs) GetNetworkAddress ¶
func (*FakeSysFs) GetNetworkDevices ¶
func (*FakeSysFs) GetNetworkMtu ¶
func (*FakeSysFs) GetNetworkSpeed ¶
func (*FakeSysFs) GetNetworkStatValue ¶
func (*FakeSysFs) GetSystemUUID ¶
func (*FakeSysFs) SetCacheInfo ¶
func (*FakeSysFs) SetEntryName ¶
type FileInfo ¶
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 ¶
func (*FileInfo) ModTime ¶
func (*FileInfo) Mode ¶
func (*FileInfo) Name ¶
func (*FileInfo) Size ¶
func (*FileInfo) Sys ¶
func (self *FileInfo) Sys() interface{}
Source Files ¶
fake.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 seconds ago –
Tools for package owners.