mock_agent_tracker

package
v16.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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

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

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

type QuerierGetConnectionsByAgentIDCall struct {
	*gomock.Call
}

QuerierGetConnectionsByAgentIDCall wrap *gomock.Call

func (*QuerierGetConnectionsByAgentIDCall) Do

Do rewrite *gomock.Call.Do

func (*QuerierGetConnectionsByAgentIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuerierGetConnectionsByAgentIDCall) Return

Return rewrite *gomock.Call.Return

type QuerierGetConnectionsByProjectIDCall

type QuerierGetConnectionsByProjectIDCall struct {
	*gomock.Call
}

QuerierGetConnectionsByProjectIDCall wrap *gomock.Call

func (*QuerierGetConnectionsByProjectIDCall) Do

Do rewrite *gomock.Call.Do

func (*QuerierGetConnectionsByProjectIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuerierGetConnectionsByProjectIDCall) Return

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

type TrackerGetConnectionsByAgentIDCall struct {
	*gomock.Call
}

TrackerGetConnectionsByAgentIDCall wrap *gomock.Call

func (*TrackerGetConnectionsByAgentIDCall) Do

Do rewrite *gomock.Call.Do

func (*TrackerGetConnectionsByAgentIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerGetConnectionsByAgentIDCall) Return

Return rewrite *gomock.Call.Return

type TrackerGetConnectionsByProjectIDCall

type TrackerGetConnectionsByProjectIDCall struct {
	*gomock.Call
}

TrackerGetConnectionsByProjectIDCall wrap *gomock.Call

func (*TrackerGetConnectionsByProjectIDCall) Do

Do rewrite *gomock.Call.Do

func (*TrackerGetConnectionsByProjectIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TrackerGetConnectionsByProjectIDCall) Return

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