mocks

package
v0.0.0-...-eb3d71d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysProbeUtil

type SysProbeUtil struct {
	mock.Mock
}

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) DetectLanguage

func (_m *SysProbeUtil) DetectLanguage(pids []int32) ([]languagemodels.Language, error)

DetectLanguage provides a mock function with given fields: pids

func (*SysProbeUtil) EXPECT

func (_m *SysProbeUtil) EXPECT() *SysProbeUtil_Expecter

func (*SysProbeUtil) GetBTFLoaderInfo

func (_m *SysProbeUtil) GetBTFLoaderInfo() ([]byte, error)

GetBTFLoaderInfo provides a mock function with given fields:

func (*SysProbeUtil) GetConnTrackCached

func (_m *SysProbeUtil) GetConnTrackCached() ([]byte, error)

GetConnTrackCached provides a mock function with given fields:

func (*SysProbeUtil) GetConnTrackHost

func (_m *SysProbeUtil) GetConnTrackHost() ([]byte, error)

GetConnTrackHost provides a mock function with given fields:

func (*SysProbeUtil) GetConnections

func (_m *SysProbeUtil) GetConnections(clientID string) (*process.Connections, error)

GetConnections provides a mock function with given fields: clientID

func (*SysProbeUtil) GetDiscoveryServices

func (_m *SysProbeUtil) GetDiscoveryServices() (*model.ServicesResponse, error)

GetDiscoveryServices provides a mock function with given fields:

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) GetPprof

func (_m *SysProbeUtil) GetPprof(path string) ([]byte, error)

GetPprof provides a mock function with given fields: path

func (*SysProbeUtil) GetProcStats

func (_m *SysProbeUtil) GetProcStats(pids []int32) (*process.ProcStatsWithPermByPID, error)

GetProcStats provides a mock function with given fields: pids

func (*SysProbeUtil) GetStats

func (_m *SysProbeUtil) GetStats() (map[string]interface{}, error)

GetStats provides a mock function with given fields:

func (*SysProbeUtil) GetTelemetry

func (_m *SysProbeUtil) GetTelemetry() ([]byte, error)

GetTelemetry provides a mock function with given fields:

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_DetectLanguage_Call

type SysProbeUtil_DetectLanguage_Call struct {
	*mock.Call
}

SysProbeUtil_DetectLanguage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetectLanguage'

func (*SysProbeUtil_DetectLanguage_Call) Return

func (*SysProbeUtil_DetectLanguage_Call) Run

func (*SysProbeUtil_DetectLanguage_Call) RunAndReturn

type SysProbeUtil_Expecter

type SysProbeUtil_Expecter struct {
	// contains filtered or unexported fields
}

func (*SysProbeUtil_Expecter) DetectLanguage

func (_e *SysProbeUtil_Expecter) DetectLanguage(pids interface{}) *SysProbeUtil_DetectLanguage_Call

DetectLanguage is a helper method to define mock.On call

  • pids []int32

func (*SysProbeUtil_Expecter) GetBTFLoaderInfo

GetBTFLoaderInfo is a helper method to define mock.On call

func (*SysProbeUtil_Expecter) GetConnTrackCached

GetConnTrackCached is a helper method to define mock.On call

func (*SysProbeUtil_Expecter) GetConnTrackHost

GetConnTrackHost is a helper method to define mock.On call

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) GetDiscoveryServices

GetDiscoveryServices is a helper method to define mock.On call

func (*SysProbeUtil_Expecter) GetNetworkID

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) GetPprof

func (_e *SysProbeUtil_Expecter) GetPprof(path interface{}) *SysProbeUtil_GetPprof_Call

GetPprof is a helper method to define mock.On call

  • path string

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) GetStats

GetStats is a helper method to define mock.On call

func (*SysProbeUtil_Expecter) GetTelemetry

GetTelemetry is a helper method to define mock.On call

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_GetBTFLoaderInfo_Call

type SysProbeUtil_GetBTFLoaderInfo_Call struct {
	*mock.Call
}

SysProbeUtil_GetBTFLoaderInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBTFLoaderInfo'

func (*SysProbeUtil_GetBTFLoaderInfo_Call) Return

func (*SysProbeUtil_GetBTFLoaderInfo_Call) Run

func (*SysProbeUtil_GetBTFLoaderInfo_Call) RunAndReturn

type SysProbeUtil_GetConnTrackCached_Call

type SysProbeUtil_GetConnTrackCached_Call struct {
	*mock.Call
}

SysProbeUtil_GetConnTrackCached_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConnTrackCached'

func (*SysProbeUtil_GetConnTrackCached_Call) Return

func (*SysProbeUtil_GetConnTrackCached_Call) Run

func (*SysProbeUtil_GetConnTrackCached_Call) RunAndReturn

type SysProbeUtil_GetConnTrackHost_Call

type SysProbeUtil_GetConnTrackHost_Call struct {
	*mock.Call
}

SysProbeUtil_GetConnTrackHost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConnTrackHost'

func (*SysProbeUtil_GetConnTrackHost_Call) Return

func (*SysProbeUtil_GetConnTrackHost_Call) Run

func (*SysProbeUtil_GetConnTrackHost_Call) RunAndReturn

type SysProbeUtil_GetConnections_Call

type SysProbeUtil_GetConnections_Call struct {
	*mock.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 (*SysProbeUtil_GetConnections_Call) Run

func (*SysProbeUtil_GetConnections_Call) RunAndReturn

type SysProbeUtil_GetDiscoveryServices_Call

type SysProbeUtil_GetDiscoveryServices_Call struct {
	*mock.Call
}

SysProbeUtil_GetDiscoveryServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDiscoveryServices'

func (*SysProbeUtil_GetDiscoveryServices_Call) Return

func (*SysProbeUtil_GetDiscoveryServices_Call) Run

func (*SysProbeUtil_GetDiscoveryServices_Call) RunAndReturn

type SysProbeUtil_GetNetworkID_Call

type SysProbeUtil_GetNetworkID_Call struct {
	*mock.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 (*SysProbeUtil_GetNetworkID_Call) Run

func (*SysProbeUtil_GetNetworkID_Call) RunAndReturn

type SysProbeUtil_GetPing_Call

type SysProbeUtil_GetPing_Call struct {
	*mock.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 (*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_GetPprof_Call

type SysProbeUtil_GetPprof_Call struct {
	*mock.Call
}

SysProbeUtil_GetPprof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPprof'

func (*SysProbeUtil_GetPprof_Call) Return

func (*SysProbeUtil_GetPprof_Call) Run

func (*SysProbeUtil_GetPprof_Call) RunAndReturn

func (_c *SysProbeUtil_GetPprof_Call) RunAndReturn(run func(string) ([]byte, error)) *SysProbeUtil_GetPprof_Call

type SysProbeUtil_GetProcStats_Call

type SysProbeUtil_GetProcStats_Call struct {
	*mock.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 (*SysProbeUtil_GetProcStats_Call) Run

func (*SysProbeUtil_GetProcStats_Call) RunAndReturn

type SysProbeUtil_GetStats_Call

type SysProbeUtil_GetStats_Call struct {
	*mock.Call
}

SysProbeUtil_GetStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStats'

func (*SysProbeUtil_GetStats_Call) Return

func (_c *SysProbeUtil_GetStats_Call) Return(_a0 map[string]interface{}, _a1 error) *SysProbeUtil_GetStats_Call

func (*SysProbeUtil_GetStats_Call) Run

func (*SysProbeUtil_GetStats_Call) RunAndReturn

func (_c *SysProbeUtil_GetStats_Call) RunAndReturn(run func() (map[string]interface{}, error)) *SysProbeUtil_GetStats_Call

type SysProbeUtil_GetTelemetry_Call

type SysProbeUtil_GetTelemetry_Call struct {
	*mock.Call
}

SysProbeUtil_GetTelemetry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTelemetry'

func (*SysProbeUtil_GetTelemetry_Call) Return

func (*SysProbeUtil_GetTelemetry_Call) Run

func (*SysProbeUtil_GetTelemetry_Call) RunAndReturn

func (_c *SysProbeUtil_GetTelemetry_Call) RunAndReturn(run func() ([]byte, error)) *SysProbeUtil_GetTelemetry_Call

type SysProbeUtil_GetTraceroute_Call

type SysProbeUtil_GetTraceroute_Call struct {
	*mock.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 (*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

type SysProbeUtil_Register_Call struct {
	*mock.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 (*SysProbeUtil_Register_Call) Run

func (_c *SysProbeUtil_Register_Call) Run(run func(clientID string)) *SysProbeUtil_Register_Call

func (*SysProbeUtil_Register_Call) RunAndReturn

Jump to

Keyboard shortcuts

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