Documentation ¶
Overview ¶
Package mock_agent_tracker is a generated GoMock package.
Index ¶
- type MockTracker
- func (m *MockTracker) CountAgentsByAgentVersions(ctx context.Context) (map[string]int64, error)
- func (m *MockTracker) EXPECT() *MockTrackerMockRecorder
- func (m *MockTracker) GetConnectedAgentsCount(ctx context.Context) (int64, error)
- func (m *MockTracker) GetConnectionsByAgentID(ctx context.Context, agentID int64, ...) error
- func (m *MockTracker) GetConnectionsByProjectID(ctx context.Context, projectID int64, ...) error
- func (m *MockTracker) RegisterExpiring(ctx context.Context, info *agent_tracker.ConnectedAgentInfo) error
- func (m *MockTracker) Run(ctx context.Context) error
- func (m *MockTracker) Unregister(ctx context.Context, info *agent_tracker.DisconnectAgentInfo) 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(ctx any) *MockTrackerCountAgentsByAgentVersionsCall
- func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(ctx any) *MockTrackerGetConnectedAgentsCountCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(ctx, agentID, cb any) *MockTrackerGetConnectionsByAgentIDCall
- func (mr *MockTrackerMockRecorder) GetConnectionsByProjectID(ctx, projectID, cb any) *MockTrackerGetConnectionsByProjectIDCall
- func (mr *MockTrackerMockRecorder) RegisterExpiring(ctx, info any) *MockTrackerRegisterExpiringCall
- func (mr *MockTrackerMockRecorder) Run(ctx any) *MockTrackerRunCall
- func (mr *MockTrackerMockRecorder) Unregister(ctx, info any) *MockTrackerUnregisterCall
- 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 MockTrackerUnregisterCall
- func (c *MockTrackerUnregisterCall) Do(f func(context.Context, *agent_tracker.DisconnectAgentInfo) error) *MockTrackerUnregisterCall
- func (c *MockTrackerUnregisterCall) DoAndReturn(f func(context.Context, *agent_tracker.DisconnectAgentInfo) error) *MockTrackerUnregisterCall
- func (c *MockTrackerUnregisterCall) Return(arg0 error) *MockTrackerUnregisterCall
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 ¶
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(ctx context.Context) (int64, error)
GetConnectedAgentsCount mocks base method.
func (*MockTracker) GetConnectionsByAgentID ¶
func (m *MockTracker) GetConnectionsByAgentID(ctx context.Context, agentID int64, cb agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByAgentID mocks base method.
func (*MockTracker) GetConnectionsByProjectID ¶
func (m *MockTracker) GetConnectionsByProjectID(ctx context.Context, projectID int64, cb agent_tracker.ConnectedAgentInfoCallback) error
GetConnectionsByProjectID mocks base method.
func (*MockTracker) RegisterExpiring ¶
func (m *MockTracker) RegisterExpiring(ctx context.Context, info *agent_tracker.ConnectedAgentInfo) error
RegisterExpiring mocks base method.
func (*MockTracker) Run ¶
func (m *MockTracker) Run(ctx context.Context) error
Run mocks base method.
func (*MockTracker) Unregister ¶ added in v17.1.0
func (m *MockTracker) Unregister(ctx context.Context, info *agent_tracker.DisconnectAgentInfo) error
Unregister mocks base method.
type MockTrackerCountAgentsByAgentVersionsCall ¶
MockTrackerCountAgentsByAgentVersionsCall wrap *gomock.Call
func (*MockTrackerCountAgentsByAgentVersionsCall) Do ¶
func (c *MockTrackerCountAgentsByAgentVersionsCall) Do(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
Do rewrite *gomock.Call.Do
func (*MockTrackerCountAgentsByAgentVersionsCall) DoAndReturn ¶
func (c *MockTrackerCountAgentsByAgentVersionsCall) DoAndReturn(f func(context.Context) (map[string]int64, error)) *MockTrackerCountAgentsByAgentVersionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerCountAgentsByAgentVersionsCall) Return ¶
func (c *MockTrackerCountAgentsByAgentVersionsCall) Return(arg0 map[string]int64, arg1 error) *MockTrackerCountAgentsByAgentVersionsCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectedAgentsCountCall ¶
MockTrackerGetConnectedAgentsCountCall wrap *gomock.Call
func (*MockTrackerGetConnectedAgentsCountCall) Do ¶
func (c *MockTrackerGetConnectedAgentsCountCall) Do(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectedAgentsCountCall) DoAndReturn ¶
func (c *MockTrackerGetConnectedAgentsCountCall) DoAndReturn(f func(context.Context) (int64, error)) *MockTrackerGetConnectedAgentsCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectedAgentsCountCall) Return ¶
func (c *MockTrackerGetConnectedAgentsCountCall) Return(arg0 int64, arg1 error) *MockTrackerGetConnectedAgentsCountCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectionsByAgentIDCall ¶
MockTrackerGetConnectionsByAgentIDCall wrap *gomock.Call
func (*MockTrackerGetConnectionsByAgentIDCall) Do ¶
func (c *MockTrackerGetConnectionsByAgentIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectionsByAgentIDCall) DoAndReturn ¶
func (c *MockTrackerGetConnectionsByAgentIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectionsByAgentIDCall) Return ¶
func (c *MockTrackerGetConnectionsByAgentIDCall) Return(arg0 error) *MockTrackerGetConnectionsByAgentIDCall
Return rewrite *gomock.Call.Return
type MockTrackerGetConnectionsByProjectIDCall ¶
MockTrackerGetConnectionsByProjectIDCall wrap *gomock.Call
func (*MockTrackerGetConnectionsByProjectIDCall) Do ¶
func (c *MockTrackerGetConnectionsByProjectIDCall) Do(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
Do rewrite *gomock.Call.Do
func (*MockTrackerGetConnectionsByProjectIDCall) DoAndReturn ¶
func (c *MockTrackerGetConnectionsByProjectIDCall) DoAndReturn(f func(context.Context, int64, agent_tracker.ConnectedAgentInfoCallback) error) *MockTrackerGetConnectionsByProjectIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerGetConnectionsByProjectIDCall) Return ¶
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 ¶
func (mr *MockTrackerMockRecorder) CountAgentsByAgentVersions(ctx any) *MockTrackerCountAgentsByAgentVersionsCall
CountAgentsByAgentVersions indicates an expected call of CountAgentsByAgentVersions.
func (*MockTrackerMockRecorder) GetConnectedAgentsCount ¶
func (mr *MockTrackerMockRecorder) GetConnectedAgentsCount(ctx any) *MockTrackerGetConnectedAgentsCountCall
GetConnectedAgentsCount indicates an expected call of GetConnectedAgentsCount.
func (*MockTrackerMockRecorder) GetConnectionsByAgentID ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(ctx, agentID, cb any) *MockTrackerGetConnectionsByAgentIDCall
GetConnectionsByAgentID indicates an expected call of GetConnectionsByAgentID.
func (*MockTrackerMockRecorder) GetConnectionsByProjectID ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByProjectID(ctx, projectID, cb any) *MockTrackerGetConnectionsByProjectIDCall
GetConnectionsByProjectID indicates an expected call of GetConnectionsByProjectID.
func (*MockTrackerMockRecorder) RegisterExpiring ¶
func (mr *MockTrackerMockRecorder) RegisterExpiring(ctx, info any) *MockTrackerRegisterExpiringCall
RegisterExpiring indicates an expected call of RegisterExpiring.
func (*MockTrackerMockRecorder) Run ¶
func (mr *MockTrackerMockRecorder) Run(ctx any) *MockTrackerRunCall
Run indicates an expected call of Run.
func (*MockTrackerMockRecorder) Unregister ¶ added in v17.1.0
func (mr *MockTrackerMockRecorder) Unregister(ctx, info any) *MockTrackerUnregisterCall
Unregister indicates an expected call of Unregister.
type MockTrackerRegisterExpiringCall ¶
MockTrackerRegisterExpiringCall wrap *gomock.Call
func (*MockTrackerRegisterExpiringCall) Do ¶
func (c *MockTrackerRegisterExpiringCall) Do(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRegisterExpiringCall) DoAndReturn ¶
func (c *MockTrackerRegisterExpiringCall) DoAndReturn(f func(context.Context, *agent_tracker.ConnectedAgentInfo) error) *MockTrackerRegisterExpiringCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRegisterExpiringCall) Return ¶
func (c *MockTrackerRegisterExpiringCall) Return(arg0 error) *MockTrackerRegisterExpiringCall
Return rewrite *gomock.Call.Return
type MockTrackerRunCall ¶
MockTrackerRunCall wrap *gomock.Call
func (*MockTrackerRunCall) Do ¶
func (c *MockTrackerRunCall) Do(f func(context.Context) error) *MockTrackerRunCall
Do rewrite *gomock.Call.Do
func (*MockTrackerRunCall) DoAndReturn ¶
func (c *MockTrackerRunCall) DoAndReturn(f func(context.Context) error) *MockTrackerRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerRunCall) Return ¶
func (c *MockTrackerRunCall) Return(arg0 error) *MockTrackerRunCall
Return rewrite *gomock.Call.Return
type MockTrackerUnregisterCall ¶ added in v17.1.0
MockTrackerUnregisterCall wrap *gomock.Call
func (*MockTrackerUnregisterCall) Do ¶ added in v17.1.0
func (c *MockTrackerUnregisterCall) Do(f func(context.Context, *agent_tracker.DisconnectAgentInfo) error) *MockTrackerUnregisterCall
Do rewrite *gomock.Call.Do
func (*MockTrackerUnregisterCall) DoAndReturn ¶ added in v17.1.0
func (c *MockTrackerUnregisterCall) DoAndReturn(f func(context.Context, *agent_tracker.DisconnectAgentInfo) error) *MockTrackerUnregisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTrackerUnregisterCall) Return ¶ added in v17.1.0
func (c *MockTrackerUnregisterCall) Return(arg0 error) *MockTrackerUnregisterCall
Return rewrite *gomock.Call.Return