fakesysfs

package
v0.0.0-...-a9764b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (self *FakeSysFs) GetBlockDeviceNumbers(name string) (string, error)

func (*FakeSysFs) GetBlockDeviceScheduler

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

func (*FakeSysFs) GetBlockDeviceSize

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

func (*FakeSysFs) GetBlockDevices

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

func (*FakeSysFs) GetCacheInfo

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

func (*FakeSysFs) GetCaches

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

func (*FakeSysFs) GetNetworkAddress

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

func (*FakeSysFs) GetNetworkDevices

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

func (*FakeSysFs) GetNetworkMtu

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

func (*FakeSysFs) GetNetworkSpeed

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

func (*FakeSysFs) GetNetworkStatValue

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

func (*FakeSysFs) GetSystemUUID

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

func (*FakeSysFs) SetCacheInfo

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

func (*FakeSysFs) SetEntryName

func (self *FakeSysFs) SetEntryName(name string)

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 (self *FileInfo) IsDir() bool

func (*FileInfo) ModTime

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

func (*FileInfo) Mode

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

func (*FileInfo) Name

func (self *FileInfo) Name() string

func (*FileInfo) Size

func (self *FileInfo) Size() int64

func (*FileInfo) Sys

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL