Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_tracker (interfaces: Tracker,Querier)
Generated by this command:
mockgen -typed -destination tracker.go gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_tracker Tracker,Querier
Package mock_agent_tracker is a generated GoMock package.
Index ¶
- type MockQuerier
- func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
- func (m *MockQuerier) GetConnectedAgentsCount(arg0 context.Context) (int64, error)
- func (m *MockQuerier) GetConnectionsByAgentId(arg0 context.Context, arg1 int64, ...) error
- func (m *MockQuerier) GetConnectionsByProjectId(arg0 context.Context, arg1 int64, ...) error
- type MockQuerierMockRecorder
- func (mr *MockQuerierMockRecorder) GetConnectedAgentsCount(arg0 any) *QuerierGetConnectedAgentsCountCall
- func (mr *MockQuerierMockRecorder) GetConnectionsByAgentId(arg0, arg1, arg2 any) *QuerierGetConnectionsByAgentIdCall
- func (mr *MockQuerierMockRecorder) GetConnectionsByProjectId(arg0, arg1, arg2 any) *QuerierGetConnectionsByProjectIdCall
- type MockTracker
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- func (m *MockTracker) GetConnectedAgentsCount(arg0 context.Context) (int64, error)
- func (m *MockTracker) GetConnectionsByAgentId(arg0 context.Context, arg1 int64, ...) error
- func (m *MockTracker) GetConnectionsByProjectId(arg0 context.Context, arg1 int64, ...) error
- func (m *MockTracker) RegisterConnection(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
- func (m *MockTracker) Run(arg0 context.Context) error
- func (m *MockTracker) UnregisterConnection(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
- type MockTrackerMockRecorder
- func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(arg0 any) *TrackerGetConnectedAgentsCountCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByAgentId(arg0, arg1, arg2 any) *TrackerGetConnectionsByAgentIdCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByProjectId(arg0, arg1, arg2 any) *TrackerGetConnectionsByProjectIdCall
- func (mr *MockTrackerMockRecorder) RegisterConnection(arg0, arg1 any) *TrackerRegisterConnectionCall
- func (mr *MockTrackerMockRecorder) Run(arg0 any) *TrackerRunCall
- func (mr *MockTrackerMockRecorder) UnregisterConnection(arg0, arg1 any) *TrackerUnregisterConnectionCall
- type QuerierGetConnectedAgentsCountCall
- func (c *QuerierGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *QuerierGetConnectedAgentsCountCall
- func (c *QuerierGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *QuerierGetConnectedAgentsCountCall
- func (c *QuerierGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *QuerierGetConnectedAgentsCountCall
- type QuerierGetConnectionsByAgentIdCall
- func (c *QuerierGetConnectionsByAgentIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIdCall
- func (c *QuerierGetConnectionsByAgentIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIdCall
- func (c *QuerierGetConnectionsByAgentIdCall) Return(arg0 error) *QuerierGetConnectionsByAgentIdCall
- type QuerierGetConnectionsByProjectIdCall
- func (c *QuerierGetConnectionsByProjectIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIdCall
- func (c *QuerierGetConnectionsByProjectIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIdCall
- func (c *QuerierGetConnectionsByProjectIdCall) Return(arg0 error) *QuerierGetConnectionsByProjectIdCall
- type TrackerGetConnectedAgentsCountCall
- func (c *TrackerGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *TrackerGetConnectedAgentsCountCall
- func (c *TrackerGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *TrackerGetConnectedAgentsCountCall
- func (c *TrackerGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *TrackerGetConnectedAgentsCountCall
- type TrackerGetConnectionsByAgentIdCall
- func (c *TrackerGetConnectionsByAgentIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIdCall
- func (c *TrackerGetConnectionsByAgentIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIdCall
- func (c *TrackerGetConnectionsByAgentIdCall) Return(arg0 error) *TrackerGetConnectionsByAgentIdCall
- type TrackerGetConnectionsByProjectIdCall
- func (c *TrackerGetConnectionsByProjectIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIdCall
- func (c *TrackerGetConnectionsByProjectIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIdCall
- func (c *TrackerGetConnectionsByProjectIdCall) Return(arg0 error) *TrackerGetConnectionsByProjectIdCall
- type TrackerRegisterConnectionCall
- func (c *TrackerRegisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerRegisterConnectionCall
- func (c *TrackerRegisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerRegisterConnectionCall
- func (c *TrackerRegisterConnectionCall) Return(arg0 error) *TrackerRegisterConnectionCall
- type TrackerRunCall
- type TrackerUnregisterConnectionCall
- func (c *TrackerUnregisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerUnregisterConnectionCall
- func (c *TrackerUnregisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerUnregisterConnectionCall
- func (c *TrackerUnregisterConnectionCall) Return(arg0 error) *TrackerUnregisterConnectionCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockQuerier ¶ added in v16.6.0
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface.
func NewMockQuerier ¶ added in v16.6.0
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance.
func (*MockQuerier) EXPECT ¶ added in v16.6.0
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuerier) GetConnectedAgentsCount ¶ added in v16.6.0
func (m *MockQuerier) GetConnectedAgentsCount(arg0 context.Context) (int64, error)
GetConnectedAgentsCount mocks base method.
func (*MockQuerier) GetConnectionsByAgentId ¶ added in v16.6.0
func (m *MockQuerier) GetConnectionsByAgentId(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByAgentId mocks base method.
func (*MockQuerier) GetConnectionsByProjectId ¶ added in v16.6.0
func (m *MockQuerier) GetConnectionsByProjectId(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByProjectId mocks base method.
type MockQuerierMockRecorder ¶ added in v16.6.0
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier.
func (*MockQuerierMockRecorder) GetConnectedAgentsCount ¶ added in v16.6.0
func (mr *MockQuerierMockRecorder) GetConnectedAgentsCount(arg0 any) *QuerierGetConnectedAgentsCountCall
GetConnectedAgentsCount indicates an expected call of GetConnectedAgentsCount.
func (*MockQuerierMockRecorder) GetConnectionsByAgentId ¶ added in v16.6.0
func (mr *MockQuerierMockRecorder) GetConnectionsByAgentId(arg0, arg1, arg2 any) *QuerierGetConnectionsByAgentIdCall
GetConnectionsByAgentId indicates an expected call of GetConnectionsByAgentId.
func (*MockQuerierMockRecorder) GetConnectionsByProjectId ¶ added in v16.6.0
func (mr *MockQuerierMockRecorder) GetConnectionsByProjectId(arg0, arg1, arg2 any) *QuerierGetConnectionsByProjectIdCall
GetConnectionsByProjectId indicates an expected call of GetConnectionsByProjectId.
type MockTracker ¶
type MockTracker struct {
// contains filtered or unexported fields
}
MockTracker is a mock of Tracker interface.
func NewMockTracker ¶
func NewMockTracker(ctrl *gomock.Controller) *MockTracker
NewMockTracker creates a new mock instance.
func (*MockTracker) EXPECT ¶
func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTracker) GetConnectedAgentsCount ¶
func (m *MockTracker) GetConnectedAgentsCount(arg0 context.Context) (int64, error)
GetConnectedAgentsCount mocks base method.
func (*MockTracker) GetConnectionsByAgentId ¶
func (m *MockTracker) GetConnectionsByAgentId(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByAgentId mocks base method.
func (*MockTracker) GetConnectionsByProjectId ¶
func (m *MockTracker) GetConnectionsByProjectId(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByProjectId mocks base method.
func (*MockTracker) RegisterConnection ¶
func (m *MockTracker) RegisterConnection(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
RegisterConnection mocks base method.
func (*MockTracker) Run ¶
func (m *MockTracker) Run(arg0 context.Context) error
Run mocks base method.
func (*MockTracker) UnregisterConnection ¶
func (m *MockTracker) UnregisterConnection(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
UnregisterConnection mocks base method.
type MockTrackerMockRecorder ¶
type MockTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrackerMockRecorder is the mock recorder for MockTracker.
func (*MockTrackerMockRecorder) GetConnectedAgentsCount ¶
func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(arg0 any) *TrackerGetConnectedAgentsCountCall
GetConnectedAgentsCount indicates an expected call of GetConnectedAgentsCount.
func (*MockTrackerMockRecorder) GetConnectionsByAgentId ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByAgentId(arg0, arg1, arg2 any) *TrackerGetConnectionsByAgentIdCall
GetConnectionsByAgentId indicates an expected call of GetConnectionsByAgentId.
func (*MockTrackerMockRecorder) GetConnectionsByProjectId ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByProjectId(arg0, arg1, arg2 any) *TrackerGetConnectionsByProjectIdCall
GetConnectionsByProjectId indicates an expected call of GetConnectionsByProjectId.
func (*MockTrackerMockRecorder) RegisterConnection ¶
func (mr *MockTrackerMockRecorder) RegisterConnection(arg0, arg1 any) *TrackerRegisterConnectionCall
RegisterConnection indicates an expected call of RegisterConnection.
func (*MockTrackerMockRecorder) Run ¶
func (mr *MockTrackerMockRecorder) Run(arg0 any) *TrackerRunCall
Run indicates an expected call of Run.
func (*MockTrackerMockRecorder) UnregisterConnection ¶
func (mr *MockTrackerMockRecorder) UnregisterConnection(arg0, arg1 any) *TrackerUnregisterConnectionCall
UnregisterConnection indicates an expected call of UnregisterConnection.
type QuerierGetConnectedAgentsCountCall ¶ added in v16.6.0
QuerierGetConnectedAgentsCountCall wrap *gomock.Call
func (*QuerierGetConnectedAgentsCountCall) Do ¶ added in v16.6.0
func (c *QuerierGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *QuerierGetConnectedAgentsCountCall
Do rewrite *gomock.Call.Do
func (*QuerierGetConnectedAgentsCountCall) DoAndReturn ¶ added in v16.6.0
func (c *QuerierGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *QuerierGetConnectedAgentsCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuerierGetConnectedAgentsCountCall) Return ¶ added in v16.6.0
func (c *QuerierGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *QuerierGetConnectedAgentsCountCall
Return rewrite *gomock.Call.Return
type QuerierGetConnectionsByAgentIdCall ¶ added in v16.6.0
QuerierGetConnectionsByAgentIdCall wrap *gomock.Call
func (*QuerierGetConnectionsByAgentIdCall) Do ¶ added in v16.6.0
func (c *QuerierGetConnectionsByAgentIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIdCall
Do rewrite *gomock.Call.Do
func (*QuerierGetConnectionsByAgentIdCall) DoAndReturn ¶ added in v16.6.0
func (c *QuerierGetConnectionsByAgentIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuerierGetConnectionsByAgentIdCall) Return ¶ added in v16.6.0
func (c *QuerierGetConnectionsByAgentIdCall) Return(arg0 error) *QuerierGetConnectionsByAgentIdCall
Return rewrite *gomock.Call.Return
type QuerierGetConnectionsByProjectIdCall ¶ added in v16.6.0
QuerierGetConnectionsByProjectIdCall wrap *gomock.Call
func (*QuerierGetConnectionsByProjectIdCall) Do ¶ added in v16.6.0
func (c *QuerierGetConnectionsByProjectIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIdCall
Do rewrite *gomock.Call.Do
func (*QuerierGetConnectionsByProjectIdCall) DoAndReturn ¶ added in v16.6.0
func (c *QuerierGetConnectionsByProjectIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuerierGetConnectionsByProjectIdCall) Return ¶ added in v16.6.0
func (c *QuerierGetConnectionsByProjectIdCall) Return(arg0 error) *QuerierGetConnectionsByProjectIdCall
Return rewrite *gomock.Call.Return
type TrackerGetConnectedAgentsCountCall ¶ added in v16.5.0
TrackerGetConnectedAgentsCountCall wrap *gomock.Call
func (*TrackerGetConnectedAgentsCountCall) Do ¶ added in v16.5.0
func (c *TrackerGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *TrackerGetConnectedAgentsCountCall
Do rewrite *gomock.Call.Do
func (*TrackerGetConnectedAgentsCountCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *TrackerGetConnectedAgentsCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerGetConnectedAgentsCountCall) Return ¶ added in v16.5.0
func (c *TrackerGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *TrackerGetConnectedAgentsCountCall
Return rewrite *gomock.Call.Return
type TrackerGetConnectionsByAgentIdCall ¶ added in v16.5.0
TrackerGetConnectionsByAgentIdCall wrap *gomock.Call
func (*TrackerGetConnectionsByAgentIdCall) Do ¶ added in v16.5.0
func (c *TrackerGetConnectionsByAgentIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIdCall
Do rewrite *gomock.Call.Do
func (*TrackerGetConnectionsByAgentIdCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerGetConnectionsByAgentIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerGetConnectionsByAgentIdCall) Return ¶ added in v16.5.0
func (c *TrackerGetConnectionsByAgentIdCall) Return(arg0 error) *TrackerGetConnectionsByAgentIdCall
Return rewrite *gomock.Call.Return
type TrackerGetConnectionsByProjectIdCall ¶ added in v16.5.0
TrackerGetConnectionsByProjectIdCall wrap *gomock.Call
func (*TrackerGetConnectionsByProjectIdCall) Do ¶ added in v16.5.0
func (c *TrackerGetConnectionsByProjectIdCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIdCall
Do rewrite *gomock.Call.Do
func (*TrackerGetConnectionsByProjectIdCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerGetConnectionsByProjectIdCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerGetConnectionsByProjectIdCall) Return ¶ added in v16.5.0
func (c *TrackerGetConnectionsByProjectIdCall) Return(arg0 error) *TrackerGetConnectionsByProjectIdCall
Return rewrite *gomock.Call.Return
type TrackerRegisterConnectionCall ¶ added in v16.5.0
TrackerRegisterConnectionCall wrap *gomock.Call
func (*TrackerRegisterConnectionCall) Do ¶ added in v16.5.0
func (c *TrackerRegisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerRegisterConnectionCall
Do rewrite *gomock.Call.Do
func (*TrackerRegisterConnectionCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerRegisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerRegisterConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerRegisterConnectionCall) Return ¶ added in v16.5.0
func (c *TrackerRegisterConnectionCall) Return(arg0 error) *TrackerRegisterConnectionCall
Return rewrite *gomock.Call.Return
type TrackerRunCall ¶ added in v16.5.0
TrackerRunCall wrap *gomock.Call
func (*TrackerRunCall) Do ¶ added in v16.5.0
func (c *TrackerRunCall) Do(f func(context.Context) error) *TrackerRunCall
Do rewrite *gomock.Call.Do
func (*TrackerRunCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerRunCall) DoAndReturn(f func(context.Context) error) *TrackerRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerRunCall) Return ¶ added in v16.5.0
func (c *TrackerRunCall) Return(arg0 error) *TrackerRunCall
Return rewrite *gomock.Call.Return
type TrackerUnregisterConnectionCall ¶ added in v16.5.0
TrackerUnregisterConnectionCall wrap *gomock.Call
func (*TrackerUnregisterConnectionCall) Do ¶ added in v16.5.0
func (c *TrackerUnregisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerUnregisterConnectionCall
Do rewrite *gomock.Call.Do
func (*TrackerUnregisterConnectionCall) DoAndReturn ¶ added in v16.5.0
func (c *TrackerUnregisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *TrackerUnregisterConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerUnregisterConnectionCall) Return ¶ added in v16.5.0
func (c *TrackerUnregisterConnectionCall) Return(arg0 error) *TrackerUnregisterConnectionCall
Return rewrite *gomock.Call.Return