Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockNetworkTopology
- func (m *MockNetworkTopology) DeleteHost(arg0 string) error
- func (m *MockNetworkTopology) EXPECT() *MockNetworkTopologyMockRecorder
- func (m *MockNetworkTopology) FindProbedHosts(arg0 string) ([]*resource.Host, error)
- func (m *MockNetworkTopology) Has(arg0, arg1 string) bool
- func (m *MockNetworkTopology) Neighbours(arg0 *resource.Host, arg1 int) ([]*resource.Host, error)
- func (m *MockNetworkTopology) ProbedCount(arg0 string) (uint64, error)
- func (m *MockNetworkTopology) Probes(arg0, arg1 string) networktopology.Probes
- func (m *MockNetworkTopology) Serve()
- func (m *MockNetworkTopology) Snapshot() error
- func (m *MockNetworkTopology) Stop()
- func (m *MockNetworkTopology) Store(arg0, arg1 string) error
- type MockNetworkTopologyMockRecorder
- func (mr *MockNetworkTopologyMockRecorder) DeleteHost(arg0 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) FindProbedHosts(arg0 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Has(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Neighbours(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) ProbedCount(arg0 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Probes(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Serve() *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Snapshot() *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Stop() *gomock.Call
- func (mr *MockNetworkTopologyMockRecorder) Store(arg0, arg1 any) *gomock.Call
- type MockProbes
- func (m *MockProbes) AverageRTT() (time.Duration, error)
- func (m *MockProbes) CreatedAt() (time.Time, error)
- func (m *MockProbes) EXPECT() *MockProbesMockRecorder
- func (m *MockProbes) Enqueue(arg0 *networktopology.Probe) error
- func (m *MockProbes) Len() (int64, error)
- func (m *MockProbes) Peek() (*networktopology.Probe, error)
- func (m *MockProbes) UpdatedAt() (time.Time, error)
- type MockProbesMockRecorder
- func (mr *MockProbesMockRecorder) AverageRTT() *gomock.Call
- func (mr *MockProbesMockRecorder) CreatedAt() *gomock.Call
- func (mr *MockProbesMockRecorder) Enqueue(arg0 any) *gomock.Call
- func (mr *MockProbesMockRecorder) Len() *gomock.Call
- func (mr *MockProbesMockRecorder) Peek() *gomock.Call
- func (mr *MockProbesMockRecorder) UpdatedAt() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetworkTopology ¶ added in v2.0.30
type MockNetworkTopology struct {
// contains filtered or unexported fields
}
MockNetworkTopology is a mock of NetworkTopology interface.
func NewMockNetworkTopology ¶ added in v2.0.30
func NewMockNetworkTopology(ctrl *gomock.Controller) *MockNetworkTopology
NewMockNetworkTopology creates a new mock instance.
func (*MockNetworkTopology) DeleteHost ¶ added in v2.0.30
func (m *MockNetworkTopology) DeleteHost(arg0 string) error
DeleteHost mocks base method.
func (*MockNetworkTopology) EXPECT ¶ added in v2.0.30
func (m *MockNetworkTopology) EXPECT() *MockNetworkTopologyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkTopology) FindProbedHosts ¶ added in v2.0.30
func (m *MockNetworkTopology) FindProbedHosts(arg0 string) ([]*resource.Host, error)
FindProbedHosts mocks base method.
func (*MockNetworkTopology) Has ¶ added in v2.0.30
func (m *MockNetworkTopology) Has(arg0, arg1 string) bool
Has mocks base method.
func (*MockNetworkTopology) Neighbours ¶ added in v2.1.32
Neighbours mocks base method.
func (*MockNetworkTopology) ProbedCount ¶ added in v2.0.30
func (m *MockNetworkTopology) ProbedCount(arg0 string) (uint64, error)
ProbedCount mocks base method.
func (*MockNetworkTopology) Probes ¶ added in v2.0.30
func (m *MockNetworkTopology) Probes(arg0, arg1 string) networktopology.Probes
Probes mocks base method.
func (*MockNetworkTopology) Serve ¶ added in v2.0.30
func (m *MockNetworkTopology) Serve()
Serve mocks base method.
func (*MockNetworkTopology) Snapshot ¶ added in v2.0.30
func (m *MockNetworkTopology) Snapshot() error
Snapshot mocks base method.
func (*MockNetworkTopology) Stop ¶ added in v2.0.30
func (m *MockNetworkTopology) Stop()
Stop mocks base method.
func (*MockNetworkTopology) Store ¶ added in v2.0.30
func (m *MockNetworkTopology) Store(arg0, arg1 string) error
Store mocks base method.
type MockNetworkTopologyMockRecorder ¶ added in v2.0.30
type MockNetworkTopologyMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkTopologyMockRecorder is the mock recorder for MockNetworkTopology.
func (*MockNetworkTopologyMockRecorder) DeleteHost ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) DeleteHost(arg0 any) *gomock.Call
DeleteHost indicates an expected call of DeleteHost.
func (*MockNetworkTopologyMockRecorder) FindProbedHosts ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) FindProbedHosts(arg0 any) *gomock.Call
FindProbedHosts indicates an expected call of FindProbedHosts.
func (*MockNetworkTopologyMockRecorder) Has ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) Has(arg0, arg1 any) *gomock.Call
Has indicates an expected call of Has.
func (*MockNetworkTopologyMockRecorder) Neighbours ¶ added in v2.1.32
func (mr *MockNetworkTopologyMockRecorder) Neighbours(arg0, arg1 any) *gomock.Call
Neighbours indicates an expected call of Neighbours.
func (*MockNetworkTopologyMockRecorder) ProbedCount ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) ProbedCount(arg0 any) *gomock.Call
ProbedCount indicates an expected call of ProbedCount.
func (*MockNetworkTopologyMockRecorder) Probes ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) Probes(arg0, arg1 any) *gomock.Call
Probes indicates an expected call of Probes.
func (*MockNetworkTopologyMockRecorder) Serve ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) Serve() *gomock.Call
Serve indicates an expected call of Serve.
func (*MockNetworkTopologyMockRecorder) Snapshot ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) Snapshot() *gomock.Call
Snapshot indicates an expected call of Snapshot.
func (*MockNetworkTopologyMockRecorder) Stop ¶ added in v2.0.30
func (mr *MockNetworkTopologyMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockProbes ¶
type MockProbes struct {
// contains filtered or unexported fields
}
MockProbes is a mock of Probes interface.
func NewMockProbes ¶
func NewMockProbes(ctrl *gomock.Controller) *MockProbes
NewMockProbes creates a new mock instance.
func (*MockProbes) AverageRTT ¶
func (m *MockProbes) AverageRTT() (time.Duration, error)
AverageRTT mocks base method.
func (*MockProbes) CreatedAt ¶
func (m *MockProbes) CreatedAt() (time.Time, error)
CreatedAt mocks base method.
func (*MockProbes) EXPECT ¶
func (m *MockProbes) EXPECT() *MockProbesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProbes) Enqueue ¶
func (m *MockProbes) Enqueue(arg0 *networktopology.Probe) error
Enqueue mocks base method.
func (*MockProbes) Len ¶ added in v2.0.30
func (m *MockProbes) Len() (int64, error)
Len mocks base method.
func (*MockProbes) Peek ¶
func (m *MockProbes) Peek() (*networktopology.Probe, error)
Peek mocks base method.
type MockProbesMockRecorder ¶
type MockProbesMockRecorder struct {
// contains filtered or unexported fields
}
MockProbesMockRecorder is the mock recorder for MockProbes.
func (*MockProbesMockRecorder) AverageRTT ¶
func (mr *MockProbesMockRecorder) AverageRTT() *gomock.Call
AverageRTT indicates an expected call of AverageRTT.
func (*MockProbesMockRecorder) CreatedAt ¶
func (mr *MockProbesMockRecorder) CreatedAt() *gomock.Call
CreatedAt indicates an expected call of CreatedAt.
func (*MockProbesMockRecorder) Enqueue ¶
func (mr *MockProbesMockRecorder) Enqueue(arg0 any) *gomock.Call
Enqueue indicates an expected call of Enqueue.
func (*MockProbesMockRecorder) Len ¶ added in v2.0.30
func (mr *MockProbesMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockProbesMockRecorder) Peek ¶
func (mr *MockProbesMockRecorder) Peek() *gomock.Call
Peek indicates an expected call of Peek.
func (*MockProbesMockRecorder) UpdatedAt ¶
func (mr *MockProbesMockRecorder) UpdatedAt() *gomock.Call
UpdatedAt indicates an expected call of UpdatedAt.