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) RegisterExpiring(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
- func (m *MockTracker) Run(arg0 context.Context) 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) RegisterExpiring(arg0, arg1 any) *MockTrackerRegisterExpiringCall
- func (mr *MockTrackerMockRecorder) Run(arg0 any) *MockTrackerRunCall
- 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
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(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) RegisterExpiring ¶
func (m *MockTracker) RegisterExpiring(arg0 context.Context, arg1 *agent_tracker.ConnectedAgentInfo) error
RegisterExpiring 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(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 ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByAgentID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByAgentIDCall
GetConnectionsByAgentID indicates an expected call of GetConnectionsByAgentID.
func (*MockTrackerMockRecorder) GetConnectionsByProjectID ¶
func (mr *MockTrackerMockRecorder) GetConnectionsByProjectID(arg0, arg1, arg2 any) *MockTrackerGetConnectionsByProjectIDCall
GetConnectionsByProjectID indicates an expected call of GetConnectionsByProjectID.
func (*MockTrackerMockRecorder) RegisterExpiring ¶
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.
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