Documentation ¶
Index ¶
- type FakeSigar
- func (f *FakeSigar) CollectCpuStats(collectionInterval time.Duration) (<-chan sigar.Cpu, chan<- struct{})
- func (f *FakeSigar) GetFileSystemUsage(path string) (sigar.FileSystemUsage, error)
- func (f *FakeSigar) GetLoadAverage() (sigar.LoadAverage, error)
- func (f *FakeSigar) GetMem() (sigar.Mem, error)
- func (f *FakeSigar) GetMemIgnoringCGroups() (sigar.Mem, error)
- func (f *FakeSigar) GetSwap() (sigar.Swap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSigar ¶
type FakeSigar struct { LoadAverage sigar.LoadAverage LoadAverageErr error Mem sigar.Mem MemIgnoringCGroups sigar.Mem MemErr error Swap sigar.Swap SwapErr error FileSystemUsage sigar.FileSystemUsage FileSystemUsageErr error FileSystemUsagePath string CollectCpuStatsCpuCh chan sigar.Cpu CollectCpuStatsStopCh chan struct{} }
func NewFakeSigar ¶
func NewFakeSigar() *FakeSigar
func (*FakeSigar) CollectCpuStats ¶
func (*FakeSigar) GetFileSystemUsage ¶
func (f *FakeSigar) GetFileSystemUsage(path string) (sigar.FileSystemUsage, error)
func (*FakeSigar) GetLoadAverage ¶
func (f *FakeSigar) GetLoadAverage() (sigar.LoadAverage, error)
func (*FakeSigar) GetMemIgnoringCGroups ¶ added in v1.3.1
Click to show internal directories.
Click to hide internal directories.