mock_agent_tracker

package
v16.7.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 4 Imported by: 0

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

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

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

type QuerierGetConnectedAgentsCountCall struct {
	*gomock.Call
}

QuerierGetConnectedAgentsCountCall wrap *gomock.Call

func (*QuerierGetConnectedAgentsCountCall) Do added in v16.6.0

Do rewrite *gomock.Call.Do

func (*QuerierGetConnectedAgentsCountCall) DoAndReturn added in v16.6.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuerierGetConnectedAgentsCountCall) Return added in v16.6.0

Return rewrite *gomock.Call.Return

type QuerierGetConnectionsByAgentIdCall added in v16.6.0

type QuerierGetConnectionsByAgentIdCall struct {
	*gomock.Call
}

QuerierGetConnectionsByAgentIdCall wrap *gomock.Call

func (*QuerierGetConnectionsByAgentIdCall) Do added in v16.6.0

Do rewrite *gomock.Call.Do

func (*QuerierGetConnectionsByAgentIdCall) DoAndReturn added in v16.6.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuerierGetConnectionsByAgentIdCall) Return added in v16.6.0

Return rewrite *gomock.Call.Return

type QuerierGetConnectionsByProjectIdCall added in v16.6.0

type QuerierGetConnectionsByProjectIdCall struct {
	*gomock.Call
}

QuerierGetConnectionsByProjectIdCall wrap *gomock.Call

func (*QuerierGetConnectionsByProjectIdCall) Do added in v16.6.0

Do rewrite *gomock.Call.Do

func (*QuerierGetConnectionsByProjectIdCall) DoAndReturn added in v16.6.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuerierGetConnectionsByProjectIdCall) Return added in v16.6.0

Return rewrite *gomock.Call.Return

type TrackerGetConnectedAgentsCountCall added in v16.5.0

type TrackerGetConnectedAgentsCountCall struct {
	*gomock.Call
}

TrackerGetConnectedAgentsCountCall wrap *gomock.Call

func (*TrackerGetConnectedAgentsCountCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*TrackerGetConnectedAgentsCountCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerGetConnectedAgentsCountCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type TrackerGetConnectionsByAgentIdCall added in v16.5.0

type TrackerGetConnectionsByAgentIdCall struct {
	*gomock.Call
}

TrackerGetConnectionsByAgentIdCall wrap *gomock.Call

func (*TrackerGetConnectionsByAgentIdCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*TrackerGetConnectionsByAgentIdCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerGetConnectionsByAgentIdCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type TrackerGetConnectionsByProjectIdCall added in v16.5.0

type TrackerGetConnectionsByProjectIdCall struct {
	*gomock.Call
}

TrackerGetConnectionsByProjectIdCall wrap *gomock.Call

func (*TrackerGetConnectionsByProjectIdCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*TrackerGetConnectionsByProjectIdCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerGetConnectionsByProjectIdCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type TrackerRegisterConnectionCall added in v16.5.0

type TrackerRegisterConnectionCall struct {
	*gomock.Call
}

TrackerRegisterConnectionCall wrap *gomock.Call

func (*TrackerRegisterConnectionCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*TrackerRegisterConnectionCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerRegisterConnectionCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type TrackerRunCall added in v16.5.0

type TrackerRunCall struct {
	*gomock.Call
}

TrackerRunCall wrap *gomock.Call

func (*TrackerRunCall) Do added in v16.5.0

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

type TrackerUnregisterConnectionCall struct {
	*gomock.Call
}

TrackerUnregisterConnectionCall wrap *gomock.Call

func (*TrackerUnregisterConnectionCall) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*TrackerUnregisterConnectionCall) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerUnregisterConnectionCall) Return added in v16.5.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL