Documentation
¶
Index ¶
- type Probe
- func (_m *Probe) Close()
- func (_m *Probe) EXPECT() *Probe_Expecter
- func (_m *Probe) ProcessesByPID(now time.Time, collectStats bool) (map[int32]*procutil.Process, error)
- func (_m *Probe) StatsForPIDs(pids []int32, now time.Time) (map[int32]*procutil.Stats, error)
- func (_m *Probe) StatsWithPermByPID(pids []int32) (map[int32]*procutil.StatsWithPerm, error)
- type Probe_Close_Call
- type Probe_Expecter
- func (_e *Probe_Expecter) Close() *Probe_Close_Call
- func (_e *Probe_Expecter) ProcessesByPID(now interface{}, collectStats interface{}) *Probe_ProcessesByPID_Call
- func (_e *Probe_Expecter) StatsForPIDs(pids interface{}, now interface{}) *Probe_StatsForPIDs_Call
- func (_e *Probe_Expecter) StatsWithPermByPID(pids interface{}) *Probe_StatsWithPermByPID_Call
- type Probe_ProcessesByPID_Call
- func (_c *Probe_ProcessesByPID_Call) Return(_a0 map[int32]*procutil.Process, _a1 error) *Probe_ProcessesByPID_Call
- func (_c *Probe_ProcessesByPID_Call) Run(run func(now time.Time, collectStats bool)) *Probe_ProcessesByPID_Call
- func (_c *Probe_ProcessesByPID_Call) RunAndReturn(run func(time.Time, bool) (map[int32]*procutil.Process, error)) *Probe_ProcessesByPID_Call
- type Probe_StatsForPIDs_Call
- func (_c *Probe_StatsForPIDs_Call) Return(_a0 map[int32]*procutil.Stats, _a1 error) *Probe_StatsForPIDs_Call
- func (_c *Probe_StatsForPIDs_Call) Run(run func(pids []int32, now time.Time)) *Probe_StatsForPIDs_Call
- func (_c *Probe_StatsForPIDs_Call) RunAndReturn(run func([]int32, time.Time) (map[int32]*procutil.Stats, error)) *Probe_StatsForPIDs_Call
- type Probe_StatsWithPermByPID_Call
- func (_c *Probe_StatsWithPermByPID_Call) Return(_a0 map[int32]*procutil.StatsWithPerm, _a1 error) *Probe_StatsWithPermByPID_Call
- func (_c *Probe_StatsWithPermByPID_Call) Run(run func(pids []int32)) *Probe_StatsWithPermByPID_Call
- func (_c *Probe_StatsWithPermByPID_Call) RunAndReturn(run func([]int32) (map[int32]*procutil.StatsWithPerm, error)) *Probe_StatsWithPermByPID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
Probe is an autogenerated mock type for the Probe type
func NewProbe ¶
NewProbe creates a new instance of Probe. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Probe) EXPECT ¶
func (_m *Probe) EXPECT() *Probe_Expecter
func (*Probe) ProcessesByPID ¶
func (_m *Probe) ProcessesByPID(now time.Time, collectStats bool) (map[int32]*procutil.Process, error)
ProcessesByPID provides a mock function with given fields: now, collectStats
func (*Probe) StatsForPIDs ¶
StatsForPIDs provides a mock function with given fields: pids, now
func (*Probe) StatsWithPermByPID ¶
StatsWithPermByPID provides a mock function with given fields: pids
type Probe_Close_Call ¶
Probe_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Probe_Close_Call) Return ¶
func (_c *Probe_Close_Call) Return() *Probe_Close_Call
func (*Probe_Close_Call) Run ¶
func (_c *Probe_Close_Call) Run(run func()) *Probe_Close_Call
func (*Probe_Close_Call) RunAndReturn ¶
func (_c *Probe_Close_Call) RunAndReturn(run func()) *Probe_Close_Call
type Probe_Expecter ¶
type Probe_Expecter struct {
// contains filtered or unexported fields
}
func (*Probe_Expecter) Close ¶
func (_e *Probe_Expecter) Close() *Probe_Close_Call
Close is a helper method to define mock.On call
func (*Probe_Expecter) ProcessesByPID ¶
func (_e *Probe_Expecter) ProcessesByPID(now interface{}, collectStats interface{}) *Probe_ProcessesByPID_Call
ProcessesByPID is a helper method to define mock.On call
- now time.Time
- collectStats bool
func (*Probe_Expecter) StatsForPIDs ¶
func (_e *Probe_Expecter) StatsForPIDs(pids interface{}, now interface{}) *Probe_StatsForPIDs_Call
StatsForPIDs is a helper method to define mock.On call
- pids []int32
- now time.Time
func (*Probe_Expecter) StatsWithPermByPID ¶
func (_e *Probe_Expecter) StatsWithPermByPID(pids interface{}) *Probe_StatsWithPermByPID_Call
StatsWithPermByPID is a helper method to define mock.On call
- pids []int32
type Probe_ProcessesByPID_Call ¶
Probe_ProcessesByPID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessesByPID'
func (*Probe_ProcessesByPID_Call) Return ¶
func (_c *Probe_ProcessesByPID_Call) Return(_a0 map[int32]*procutil.Process, _a1 error) *Probe_ProcessesByPID_Call
func (*Probe_ProcessesByPID_Call) Run ¶
func (_c *Probe_ProcessesByPID_Call) Run(run func(now time.Time, collectStats bool)) *Probe_ProcessesByPID_Call
func (*Probe_ProcessesByPID_Call) RunAndReturn ¶
func (_c *Probe_ProcessesByPID_Call) RunAndReturn(run func(time.Time, bool) (map[int32]*procutil.Process, error)) *Probe_ProcessesByPID_Call
type Probe_StatsForPIDs_Call ¶
Probe_StatsForPIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatsForPIDs'
func (*Probe_StatsForPIDs_Call) Return ¶
func (_c *Probe_StatsForPIDs_Call) Return(_a0 map[int32]*procutil.Stats, _a1 error) *Probe_StatsForPIDs_Call
func (*Probe_StatsForPIDs_Call) Run ¶
func (_c *Probe_StatsForPIDs_Call) Run(run func(pids []int32, now time.Time)) *Probe_StatsForPIDs_Call
func (*Probe_StatsForPIDs_Call) RunAndReturn ¶
func (_c *Probe_StatsForPIDs_Call) RunAndReturn(run func([]int32, time.Time) (map[int32]*procutil.Stats, error)) *Probe_StatsForPIDs_Call
type Probe_StatsWithPermByPID_Call ¶
Probe_StatsWithPermByPID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatsWithPermByPID'
func (*Probe_StatsWithPermByPID_Call) Return ¶
func (_c *Probe_StatsWithPermByPID_Call) Return(_a0 map[int32]*procutil.StatsWithPerm, _a1 error) *Probe_StatsWithPermByPID_Call
func (*Probe_StatsWithPermByPID_Call) Run ¶
func (_c *Probe_StatsWithPermByPID_Call) Run(run func(pids []int32)) *Probe_StatsWithPermByPID_Call
func (*Probe_StatsWithPermByPID_Call) RunAndReturn ¶
func (_c *Probe_StatsWithPermByPID_Call) RunAndReturn(run func([]int32) (map[int32]*procutil.StatsWithPerm, error)) *Probe_StatsWithPermByPID_Call