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 ¶
func (m *MockQuerier) GetConnectionsByAgentID(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByAgentID mocks base method.
func (*MockQuerier) GetConnectionsByProjectID ¶
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 ¶
func (mr *MockQuerierMockRecorder) GetConnectionsByAgentID(arg0, arg1, arg2 any) *QuerierGetConnectionsByAgentIDCall
GetConnectionsByAgentID indicates an expected call of GetConnectionsByAgentID.
func (*MockQuerierMockRecorder) GetConnectionsByProjectID ¶
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 ¶ added in v16.8.0
func (m *MockTracker) GetConnectionsByAgentID(arg0 context.Context, arg1 int64, arg2 agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByAgentID mocks base method.
func (*MockTracker) GetConnectionsByProjectID ¶ added in v16.8.0
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 ¶ added in v16.8.0
func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(arg0, arg1, arg2 any) *TrackerGetConnectionsByAgentIDCall
GetConnectionsByAgentID indicates an expected call of GetConnectionsByAgentID.
func (*MockTrackerMockRecorder) GetConnectionsByProjectID ¶ added in v16.8.0
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 ¶
QuerierGetConnectionsByAgentIDCall wrap *gomock.Call
func (*QuerierGetConnectionsByAgentIDCall) Do ¶
func (c *QuerierGetConnectionsByAgentIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*QuerierGetConnectionsByAgentIDCall) DoAndReturn ¶
func (c *QuerierGetConnectionsByAgentIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuerierGetConnectionsByAgentIDCall) Return ¶
func (c *QuerierGetConnectionsByAgentIDCall) Return(arg0 error) *QuerierGetConnectionsByAgentIDCall
Return rewrite *gomock.Call.Return
type QuerierGetConnectionsByProjectIDCall ¶
QuerierGetConnectionsByProjectIDCall wrap *gomock.Call
func (*QuerierGetConnectionsByProjectIDCall) Do ¶
func (c *QuerierGetConnectionsByProjectIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIDCall
Do rewrite *gomock.Call.Do
func (*QuerierGetConnectionsByProjectIDCall) DoAndReturn ¶
func (c *QuerierGetConnectionsByProjectIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *QuerierGetConnectionsByProjectIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuerierGetConnectionsByProjectIDCall) Return ¶
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 ¶
TrackerGetConnectionsByAgentIDCall wrap *gomock.Call
func (*TrackerGetConnectionsByAgentIDCall) Do ¶
func (c *TrackerGetConnectionsByAgentIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*TrackerGetConnectionsByAgentIDCall) DoAndReturn ¶
func (c *TrackerGetConnectionsByAgentIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerGetConnectionsByAgentIDCall) Return ¶
func (c *TrackerGetConnectionsByAgentIDCall) Return(arg0 error) *TrackerGetConnectionsByAgentIDCall
Return rewrite *gomock.Call.Return
type TrackerGetConnectionsByProjectIDCall ¶
TrackerGetConnectionsByProjectIDCall wrap *gomock.Call
func (*TrackerGetConnectionsByProjectIDCall) Do ¶
func (c *TrackerGetConnectionsByProjectIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIDCall
Do rewrite *gomock.Call.Do
func (*TrackerGetConnectionsByProjectIDCall) DoAndReturn ¶
func (c *TrackerGetConnectionsByProjectIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *TrackerGetConnectionsByProjectIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*TrackerGetConnectionsByProjectIDCall) Return ¶
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