Documentation ¶
Overview ¶
Package mock_agent_tracker is a generated GoMock package.
Index ¶
- type MockTracker
- func (m *MockTracker) CountAgentsByAgentVersions(arg0 context.Context) (map[string]int64, error)
- 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) RegisterExpiring(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 MockTrackerCountAgentsByAgentVersionsCall
- func (c *MockTrackerCountAgentsByAgentVersionsCall) Do(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
- func (c *MockTrackerCountAgentsByAgentVersionsCall) DoAndReturn(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
- func (c *MockTrackerCountAgentsByAgentVersionsCall) Return(arg0 map[string]int64, arg1 error) *MockTrackerCountAgentsByAgentVersionsCall
- type MockTrackerGetConnectedAgentsCountCall
- func (c *MockTrackerGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
- func (c *MockTrackerGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
- func (c *MockTrackerGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *MockTrackerGetConnectedAgentsCountCall
- type MockTrackerGetConnectionsByAgentIDCall
- func (c *MockTrackerGetConnectionsByAgentIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
- func (c *MockTrackerGetConnectionsByAgentIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
- func (c *MockTrackerGetConnectionsByAgentIDCall) Return(arg0 error) *MockTrackerGetConnectionsByAgentIDCall
- type MockTrackerGetConnectionsByProjectIDCall
- func (c *MockTrackerGetConnectionsByProjectIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
- func (c *MockTrackerGetConnectionsByProjectIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
- func (c *MockTrackerGetConnectionsByProjectIDCall) Return(arg0 error) *MockTrackerGetConnectionsByProjectIDCall
- type MockTrackerMockRecorder
- func (mr *MockTrackerMockRecorder) CountAgentsByAgentVersions(arg0 any) *MockTrackerCountAgentsByAgentVersionsCall
- func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(arg0 any) *MockTrackerGetConnectedAgentsCountCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByAgentIDCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByProjectID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByProjectIDCall
- func (mr *MockTrackerMockRecorder) RegisterConnection(arg0, arg1 any) *MockTrackerRegisterConnectionCall
- func (mr *MockTrackerMockRecorder) RegisterExpiring(arg0, arg1 any) *MockTrackerRegisterExpiringCall
- func (mr *MockTrackerMockRecorder) Run(arg0 any) *MockTrackerRunCall
- func (mr *MockTrackerMockRecorder) UnregisterConnection(arg0, arg1 any) *MockTrackerUnregisterConnectionCall
- type MockTrackerRegisterConnectionCall
- func (c *MockTrackerRegisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterConnectionCall
- func (c *MockTrackerRegisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterConnectionCall
- func (c *MockTrackerRegisterConnectionCall) Return(arg0 error) *MockTrackerRegisterConnectionCall
- type MockTrackerRegisterExpiringCall
- func (c *MockTrackerRegisterExpiringCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
- func (c *MockTrackerRegisterExpiringCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
- func (c *MockTrackerRegisterExpiringCall) Return(arg0 error) *MockTrackerRegisterExpiringCall
- type MockTrackerRunCall
- type MockTrackerUnregisterConnectionCall
- func (c *MockTrackerUnregisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerUnregisterConnectionCall
- func (c *MockTrackerUnregisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerUnregisterConnectionCall
- func (c *MockTrackerUnregisterConnectionCall) Return(arg0 error) *MockTrackerUnregisterConnectionCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CountAgentsByAgentVersions ¶ added in v16.10.0
CountAgentsByAgentVersions mocks base method.
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) RegisterExpiring ¶ added in v16.8.0
func (m *MockTracker) RegisterExpiring(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
RegisterExpiring 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 MockTrackerCountAgentsByAgentVersionsCall ¶ added in v16.10.0
MockTrackerCountAgentsByAgentVersionsCall wrap *gomock.Call
func (*MockTrackerCountAgentsByAgentVersionsCall) Do ¶ added in v16.10.0
func (c *MockTrackerCountAgentsByAgentVersionsCall) Do(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
Do rewrite *gomock.Call.Do
func (*MockTrackerCountAgentsByAgentVersionsCall) DoAndReturn ¶ added in v16.10.0
func (c *MockTrackerCountAgentsByAgentVersionsCall) DoAndReturn(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerCountAgentsByAgentVersionsCall) Return ¶ added in v16.10.0
func (c *MockTrackerCountAgentsByAgentVersionsCall) Return(arg0 map[string]int64, arg1 error) *MockTrackerCountAgentsByAgentVersionsCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectedAgentsCountCall ¶ added in v16.8.0
MockTrackerGetConnectedAgentsCountCall wrap *gomock.Call
func (*MockTrackerGetConnectedAgentsCountCall) Do ¶ added in v16.8.0
func (c *MockTrackerGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectedAgentsCountCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectedAgentsCountCall) Return ¶ added in v16.8.0
func (c *MockTrackerGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *MockTrackerGetConnectedAgentsCountCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectionsByAgentIDCall ¶ added in v16.8.0
MockTrackerGetConnectionsByAgentIDCall wrap *gomock.Call
func (*MockTrackerGetConnectionsByAgentIDCall) Do ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByAgentIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectionsByAgentIDCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByAgentIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectionsByAgentIDCall) Return ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByAgentIDCall) Return(arg0 error) *MockTrackerGetConnectionsByAgentIDCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectionsByProjectIDCall ¶ added in v16.8.0
MockTrackerGetConnectionsByProjectIDCall wrap *gomock.Call
func (*MockTrackerGetConnectionsByProjectIDCall) Do ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByProjectIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectionsByProjectIDCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByProjectIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectionsByProjectIDCall) Return ¶ added in v16.8.0
func (c *MockTrackerGetConnectionsByProjectIDCall) Return(arg0 error) *MockTrackerGetConnectionsByProjectIDCall
Return rewrite *gomock.Call.Return
type MockTrackerMockRecorder ¶
type MockTrackerMockRecorder struct {
// contains filtered or unexported fields
}
MockTrackerMockRecorder is the mock recorder for MockTracker.
func (*MockTrackerMockRecorder) CountAgentsByAgentVersions ¶ added in v16.10.0
func (mr *MockTrackerMockRecorder) CountAgentsByAgentVersions(arg0 any) *MockTrackerCountAgentsByAgentVersionsCall
CountAgentsByAgentVersions indicates an expected call of CountAgentsByAgentVersions.
func (*MockTrackerMockRecorder) GetConnectedAgentsCount ¶
func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(arg0 any) *MockTrackerGetConnectedAgentsCountCall
GetConnectedAgentsCount indicates an expected call of GetConnectedAgentsCount.
func (*MockTrackerMockRecorder) GetConnectionsByAgentID ¶ added in v16.8.0
func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByAgentIDCall
GetConnectionsByAgentID indicates an expected call of GetConnectionsByAgentID.
func (*MockTrackerMockRecorder) GetConnectionsByProjectID ¶ added in v16.8.0
func (mr *MockTrackerMockRecorder) GetConnectionsByProjectID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByProjectIDCall
GetConnectionsByProjectID indicates an expected call of GetConnectionsByProjectID.
func (*MockTrackerMockRecorder) RegisterConnection ¶
func (mr *MockTrackerMockRecorder) RegisterConnection(arg0, arg1 any) *MockTrackerRegisterConnectionCall
RegisterConnection indicates an expected call of RegisterConnection.
func (*MockTrackerMockRecorder) RegisterExpiring ¶ added in v16.8.0
func (mr *MockTrackerMockRecorder) RegisterExpiring(arg0, arg1 any) *MockTrackerRegisterExpiringCall
RegisterExpiring indicates an expected call of RegisterExpiring.
func (*MockTrackerMockRecorder) Run ¶
func (mr *MockTrackerMockRecorder) Run(arg0 any) *MockTrackerRunCall
Run indicates an expected call of Run.
func (*MockTrackerMockRecorder) UnregisterConnection ¶
func (mr *MockTrackerMockRecorder) UnregisterConnection(arg0, arg1 any) *MockTrackerUnregisterConnectionCall
UnregisterConnection indicates an expected call of UnregisterConnection.
type MockTrackerRegisterConnectionCall ¶ added in v16.8.0
MockTrackerRegisterConnectionCall wrap *gomock.Call
func (*MockTrackerRegisterConnectionCall) Do ¶ added in v16.8.0
func (c *MockTrackerRegisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterConnectionCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRegisterConnectionCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerRegisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRegisterConnectionCall) Return ¶ added in v16.8.0
func (c *MockTrackerRegisterConnectionCall) Return(arg0 error) *MockTrackerRegisterConnectionCall
Return rewrite *gomock.Call.Return
type MockTrackerRegisterExpiringCall ¶ added in v16.8.0
MockTrackerRegisterExpiringCall wrap *gomock.Call
func (*MockTrackerRegisterExpiringCall) Do ¶ added in v16.8.0
func (c *MockTrackerRegisterExpiringCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRegisterExpiringCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerRegisterExpiringCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRegisterExpiringCall) Return ¶ added in v16.8.0
func (c *MockTrackerRegisterExpiringCall) Return(arg0 error) *MockTrackerRegisterExpiringCall
Return rewrite *gomock.Call.Return
type MockTrackerRunCall ¶ added in v16.8.0
MockTrackerRunCall wrap *gomock.Call
func (*MockTrackerRunCall) Do ¶ added in v16.8.0
func (c *MockTrackerRunCall) Do(f func(context.Context) error) *MockTrackerRunCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRunCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerRunCall) DoAndReturn(f func(context.Context) error) *MockTrackerRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRunCall) Return ¶ added in v16.8.0
func (c *MockTrackerRunCall) Return(arg0 error) *MockTrackerRunCall
Return rewrite *gomock.Call.Return
type MockTrackerUnregisterConnectionCall ¶ added in v16.8.0
MockTrackerUnregisterConnectionCall wrap *gomock.Call
func (*MockTrackerUnregisterConnectionCall) Do ¶ added in v16.8.0
func (c *MockTrackerUnregisterConnectionCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerUnregisterConnectionCall
Do rewrite *gomock.Call.Do
func (*MockTrackerUnregisterConnectionCall) DoAndReturn ¶ added in v16.8.0
func (c *MockTrackerUnregisterConnectionCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerUnregisterConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerUnregisterConnectionCall) Return ¶ added in v16.8.0
func (c *MockTrackerUnregisterConnectionCall) Return(arg0 error) *MockTrackerUnregisterConnectionCall
Return rewrite *gomock.Call.Return