Documentation ¶
Index ¶
- type SysProbeUtil
- func (_m *SysProbeUtil) EXPECT() *SysProbeUtil_Expecter
- func (_m *SysProbeUtil) GetConnections(clientID string) (*process.Connections, error)
- func (_m *SysProbeUtil) GetNetworkID() (string, error)
- func (_m *SysProbeUtil) GetPing(clientID string, host string, count int, interval time.Duration, ...) ([]byte, error)
- func (_m *SysProbeUtil) GetProcStats(pids []int32) (*process.ProcStatsWithPermByPID, error)
- func (_m *SysProbeUtil) GetTraceroute(clientID string, host string, port uint16, protocol payload.Protocol, ...) ([]byte, error)
- func (_m *SysProbeUtil) Register(clientID string) error
- type SysProbeUtil_Expecter
- func (_e *SysProbeUtil_Expecter) GetConnections(clientID interface{}) *SysProbeUtil_GetConnections_Call
- func (_e *SysProbeUtil_Expecter) GetNetworkID() *SysProbeUtil_GetNetworkID_Call
- func (_e *SysProbeUtil_Expecter) GetPing(clientID interface{}, host interface{}, count interface{}, ...) *SysProbeUtil_GetPing_Call
- func (_e *SysProbeUtil_Expecter) GetProcStats(pids interface{}) *SysProbeUtil_GetProcStats_Call
- func (_e *SysProbeUtil_Expecter) GetTraceroute(clientID interface{}, host interface{}, port interface{}, protocol interface{}, ...) *SysProbeUtil_GetTraceroute_Call
- func (_e *SysProbeUtil_Expecter) Register(clientID interface{}) *SysProbeUtil_Register_Call
- type SysProbeUtil_GetConnections_Call
- func (_c *SysProbeUtil_GetConnections_Call) Return(_a0 *process.Connections, _a1 error) *SysProbeUtil_GetConnections_Call
- func (_c *SysProbeUtil_GetConnections_Call) Run(run func(clientID string)) *SysProbeUtil_GetConnections_Call
- func (_c *SysProbeUtil_GetConnections_Call) RunAndReturn(run func(string) (*process.Connections, error)) *SysProbeUtil_GetConnections_Call
- type SysProbeUtil_GetNetworkID_Call
- func (_c *SysProbeUtil_GetNetworkID_Call) Return(_a0 string, _a1 error) *SysProbeUtil_GetNetworkID_Call
- func (_c *SysProbeUtil_GetNetworkID_Call) Run(run func()) *SysProbeUtil_GetNetworkID_Call
- func (_c *SysProbeUtil_GetNetworkID_Call) RunAndReturn(run func() (string, error)) *SysProbeUtil_GetNetworkID_Call
- type SysProbeUtil_GetPing_Call
- func (_c *SysProbeUtil_GetPing_Call) Return(_a0 []byte, _a1 error) *SysProbeUtil_GetPing_Call
- func (_c *SysProbeUtil_GetPing_Call) Run(run func(clientID string, host string, count int, interval time.Duration, ...)) *SysProbeUtil_GetPing_Call
- func (_c *SysProbeUtil_GetPing_Call) RunAndReturn(run func(string, string, int, time.Duration, time.Duration) ([]byte, error)) *SysProbeUtil_GetPing_Call
- type SysProbeUtil_GetProcStats_Call
- func (_c *SysProbeUtil_GetProcStats_Call) Return(_a0 *process.ProcStatsWithPermByPID, _a1 error) *SysProbeUtil_GetProcStats_Call
- func (_c *SysProbeUtil_GetProcStats_Call) Run(run func(pids []int32)) *SysProbeUtil_GetProcStats_Call
- func (_c *SysProbeUtil_GetProcStats_Call) RunAndReturn(run func([]int32) (*process.ProcStatsWithPermByPID, error)) *SysProbeUtil_GetProcStats_Call
- type SysProbeUtil_GetTraceroute_Call
- type SysProbeUtil_Register_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SysProbeUtil ¶
SysProbeUtil is an autogenerated mock type for the SysProbeUtil type
func NewSysProbeUtil ¶
func NewSysProbeUtil(t interface { mock.TestingT Cleanup(func()) }) *SysProbeUtil
NewSysProbeUtil creates a new instance of SysProbeUtil. 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 (*SysProbeUtil) EXPECT ¶
func (_m *SysProbeUtil) EXPECT() *SysProbeUtil_Expecter
func (*SysProbeUtil) GetConnections ¶
func (_m *SysProbeUtil) GetConnections(clientID string) (*process.Connections, error)
GetConnections provides a mock function with given fields: clientID
func (*SysProbeUtil) GetNetworkID ¶
func (_m *SysProbeUtil) GetNetworkID() (string, error)
GetNetworkID provides a mock function with given fields:
func (*SysProbeUtil) GetPing ¶
func (_m *SysProbeUtil) GetPing(clientID string, host string, count int, interval time.Duration, timeout time.Duration) ([]byte, error)
GetPing provides a mock function with given fields: clientID, host, count, interval, timeout
func (*SysProbeUtil) GetProcStats ¶
func (_m *SysProbeUtil) GetProcStats(pids []int32) (*process.ProcStatsWithPermByPID, error)
GetProcStats provides a mock function with given fields: pids
func (*SysProbeUtil) GetTraceroute ¶
func (_m *SysProbeUtil) GetTraceroute(clientID string, host string, port uint16, protocol payload.Protocol, maxTTL uint8, timeout time.Duration) ([]byte, error)
GetTraceroute provides a mock function with given fields: clientID, host, port, protocol, maxTTL, timeout
func (*SysProbeUtil) Register ¶
func (_m *SysProbeUtil) Register(clientID string) error
Register provides a mock function with given fields: clientID
type SysProbeUtil_Expecter ¶
type SysProbeUtil_Expecter struct {
// contains filtered or unexported fields
}
func (*SysProbeUtil_Expecter) GetConnections ¶
func (_e *SysProbeUtil_Expecter) GetConnections(clientID interface{}) *SysProbeUtil_GetConnections_Call
GetConnections is a helper method to define mock.On call
- clientID string
func (*SysProbeUtil_Expecter) GetNetworkID ¶
func (_e *SysProbeUtil_Expecter) GetNetworkID() *SysProbeUtil_GetNetworkID_Call
GetNetworkID is a helper method to define mock.On call
func (*SysProbeUtil_Expecter) GetPing ¶
func (_e *SysProbeUtil_Expecter) GetPing(clientID interface{}, host interface{}, count interface{}, interval interface{}, timeout interface{}) *SysProbeUtil_GetPing_Call
GetPing is a helper method to define mock.On call
- clientID string
- host string
- count int
- interval time.Duration
- timeout time.Duration
func (*SysProbeUtil_Expecter) GetProcStats ¶
func (_e *SysProbeUtil_Expecter) GetProcStats(pids interface{}) *SysProbeUtil_GetProcStats_Call
GetProcStats is a helper method to define mock.On call
- pids []int32
func (*SysProbeUtil_Expecter) GetTraceroute ¶
func (_e *SysProbeUtil_Expecter) GetTraceroute(clientID interface{}, host interface{}, port interface{}, protocol interface{}, maxTTL interface{}, timeout interface{}) *SysProbeUtil_GetTraceroute_Call
GetTraceroute is a helper method to define mock.On call
- clientID string
- host string
- port uint16
- protocol payload.Protocol
- maxTTL uint8
- timeout time.Duration
func (*SysProbeUtil_Expecter) Register ¶
func (_e *SysProbeUtil_Expecter) Register(clientID interface{}) *SysProbeUtil_Register_Call
Register is a helper method to define mock.On call
- clientID string
type SysProbeUtil_GetConnections_Call ¶
SysProbeUtil_GetConnections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConnections'
func (*SysProbeUtil_GetConnections_Call) Return ¶
func (_c *SysProbeUtil_GetConnections_Call) Return(_a0 *process.Connections, _a1 error) *SysProbeUtil_GetConnections_Call
func (*SysProbeUtil_GetConnections_Call) Run ¶
func (_c *SysProbeUtil_GetConnections_Call) Run(run func(clientID string)) *SysProbeUtil_GetConnections_Call
func (*SysProbeUtil_GetConnections_Call) RunAndReturn ¶
func (_c *SysProbeUtil_GetConnections_Call) RunAndReturn(run func(string) (*process.Connections, error)) *SysProbeUtil_GetConnections_Call
type SysProbeUtil_GetNetworkID_Call ¶
SysProbeUtil_GetNetworkID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetworkID'
func (*SysProbeUtil_GetNetworkID_Call) Return ¶
func (_c *SysProbeUtil_GetNetworkID_Call) Return(_a0 string, _a1 error) *SysProbeUtil_GetNetworkID_Call
func (*SysProbeUtil_GetNetworkID_Call) Run ¶
func (_c *SysProbeUtil_GetNetworkID_Call) Run(run func()) *SysProbeUtil_GetNetworkID_Call
func (*SysProbeUtil_GetNetworkID_Call) RunAndReturn ¶
func (_c *SysProbeUtil_GetNetworkID_Call) RunAndReturn(run func() (string, error)) *SysProbeUtil_GetNetworkID_Call
type SysProbeUtil_GetPing_Call ¶
SysProbeUtil_GetPing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPing'
func (*SysProbeUtil_GetPing_Call) Return ¶
func (_c *SysProbeUtil_GetPing_Call) Return(_a0 []byte, _a1 error) *SysProbeUtil_GetPing_Call
func (*SysProbeUtil_GetPing_Call) Run ¶
func (_c *SysProbeUtil_GetPing_Call) Run(run func(clientID string, host string, count int, interval time.Duration, timeout time.Duration)) *SysProbeUtil_GetPing_Call
func (*SysProbeUtil_GetPing_Call) RunAndReturn ¶
type SysProbeUtil_GetProcStats_Call ¶
SysProbeUtil_GetProcStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProcStats'
func (*SysProbeUtil_GetProcStats_Call) Return ¶
func (_c *SysProbeUtil_GetProcStats_Call) Return(_a0 *process.ProcStatsWithPermByPID, _a1 error) *SysProbeUtil_GetProcStats_Call
func (*SysProbeUtil_GetProcStats_Call) Run ¶
func (_c *SysProbeUtil_GetProcStats_Call) Run(run func(pids []int32)) *SysProbeUtil_GetProcStats_Call
func (*SysProbeUtil_GetProcStats_Call) RunAndReturn ¶
func (_c *SysProbeUtil_GetProcStats_Call) RunAndReturn(run func([]int32) (*process.ProcStatsWithPermByPID, error)) *SysProbeUtil_GetProcStats_Call
type SysProbeUtil_GetTraceroute_Call ¶
SysProbeUtil_GetTraceroute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTraceroute'
func (*SysProbeUtil_GetTraceroute_Call) Return ¶
func (_c *SysProbeUtil_GetTraceroute_Call) Return(_a0 []byte, _a1 error) *SysProbeUtil_GetTraceroute_Call
func (*SysProbeUtil_GetTraceroute_Call) Run ¶
func (_c *SysProbeUtil_GetTraceroute_Call) Run(run func(clientID string, host string, port uint16, protocol payload.Protocol, maxTTL uint8, timeout time.Duration)) *SysProbeUtil_GetTraceroute_Call
func (*SysProbeUtil_GetTraceroute_Call) RunAndReturn ¶
type SysProbeUtil_Register_Call ¶
SysProbeUtil_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*SysProbeUtil_Register_Call) Return ¶
func (_c *SysProbeUtil_Register_Call) Return(_a0 error) *SysProbeUtil_Register_Call
func (*SysProbeUtil_Register_Call) Run ¶
func (_c *SysProbeUtil_Register_Call) Run(run func(clientID string)) *SysProbeUtil_Register_Call
func (*SysProbeUtil_Register_Call) RunAndReturn ¶
func (_c *SysProbeUtil_Register_Call) RunAndReturn(run func(string) error) *SysProbeUtil_Register_Call