mock_modagent

package
v16.11.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mock_modagent is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI added in v16.9.0

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface.

func NewMockAPI added in v16.9.0

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) EXPECT added in v16.9.0

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAPI) GetAgentID added in v16.9.0

func (m *MockAPI) GetAgentID(arg0 context.Context) (int64, error)

GetAgentID mocks base method.

func (*MockAPI) GetGitLabExternalURL added in v16.9.0

func (m *MockAPI) GetGitLabExternalURL(arg0 context.Context) (url.URL, error)

GetGitLabExternalURL mocks base method.

func (*MockAPI) HandleProcessingError added in v16.9.0

func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 int64, arg3 string, arg4 error)

HandleProcessingError mocks base method.

func (*MockAPI) MakeGitLabRequest added in v16.9.0

func (m *MockAPI) MakeGitLabRequest(arg0 context.Context, arg1 string, arg2 ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)

MakeGitLabRequest mocks base method.

func (*MockAPI) TryGetAgentID added in v16.9.0

func (m *MockAPI) TryGetAgentID() (int64, bool)

TryGetAgentID mocks base method.

type MockAPIGetAgentIDCall added in v16.9.0

type MockAPIGetAgentIDCall struct {
	*gomock.Call
}

MockAPIGetAgentIDCall wrap *gomock.Call

func (*MockAPIGetAgentIDCall) Do added in v16.9.0

Do rewrite *gomock.Call.Do

func (*MockAPIGetAgentIDCall) DoAndReturn added in v16.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIGetAgentIDCall) Return added in v16.9.0

func (c *MockAPIGetAgentIDCall) Return(arg0 int64, arg1 error) *MockAPIGetAgentIDCall

Return rewrite *gomock.Call.Return

type MockAPIGetGitLabExternalURLCall added in v16.9.0

type MockAPIGetGitLabExternalURLCall struct {
	*gomock.Call
}

MockAPIGetGitLabExternalURLCall wrap *gomock.Call

func (*MockAPIGetGitLabExternalURLCall) Do added in v16.9.0

Do rewrite *gomock.Call.Do

func (*MockAPIGetGitLabExternalURLCall) DoAndReturn added in v16.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIGetGitLabExternalURLCall) Return added in v16.9.0

Return rewrite *gomock.Call.Return

type MockAPIHandleProcessingErrorCall added in v16.9.0

type MockAPIHandleProcessingErrorCall struct {
	*gomock.Call
}

MockAPIHandleProcessingErrorCall wrap *gomock.Call

func (*MockAPIHandleProcessingErrorCall) Do added in v16.9.0

Do rewrite *gomock.Call.Do

func (*MockAPIHandleProcessingErrorCall) DoAndReturn added in v16.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIHandleProcessingErrorCall) Return added in v16.9.0

Return rewrite *gomock.Call.Return

type MockAPIMakeGitLabRequestCall added in v16.9.0

type MockAPIMakeGitLabRequestCall struct {
	*gomock.Call
}

MockAPIMakeGitLabRequestCall wrap *gomock.Call

func (*MockAPIMakeGitLabRequestCall) Do added in v16.9.0

Do rewrite *gomock.Call.Do

func (*MockAPIMakeGitLabRequestCall) DoAndReturn added in v16.9.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPIMakeGitLabRequestCall) Return added in v16.9.0

Return rewrite *gomock.Call.Return

type MockAPIMockRecorder added in v16.9.0

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) GetAgentID added in v16.9.0

func (mr *MockAPIMockRecorder) GetAgentID(arg0 any) *MockAPIGetAgentIDCall

GetAgentID indicates an expected call of GetAgentID.

func (*MockAPIMockRecorder) GetGitLabExternalURL added in v16.9.0

func (mr *MockAPIMockRecorder) GetGitLabExternalURL(arg0 any) *MockAPIGetGitLabExternalURLCall

GetGitLabExternalURL indicates an expected call of GetGitLabExternalURL.

func (*MockAPIMockRecorder) HandleProcessingError added in v16.9.0

func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *MockAPIHandleProcessingErrorCall

HandleProcessingError indicates an expected call of HandleProcessingError.

func (*MockAPIMockRecorder) MakeGitLabRequest added in v16.9.0

func (mr *MockAPIMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *MockAPIMakeGitLabRequestCall

MakeGitLabRequest indicates an expected call of MakeGitLabRequest.

func (*MockAPIMockRecorder) TryGetAgentID added in v16.9.0

func (mr *MockAPIMockRecorder) TryGetAgentID() *MockAPITryGetAgentIDCall

TryGetAgentID indicates an expected call of TryGetAgentID.

type MockAPITryGetAgentIDCall added in v16.9.0

type MockAPITryGetAgentIDCall struct {
	*gomock.Call
}

MockAPITryGetAgentIDCall wrap *gomock.Call

func (*MockAPITryGetAgentIDCall) Do added in v16.9.0

Do rewrite *gomock.Call.Do

func (*MockAPITryGetAgentIDCall) DoAndReturn added in v16.9.0

func (c *MockAPITryGetAgentIDCall) DoAndReturn(f func() (int64, bool)) *MockAPITryGetAgentIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPITryGetAgentIDCall) Return added in v16.9.0

Return rewrite *gomock.Call.Return

type MockFactory

type MockFactory struct {
	// contains filtered or unexported fields
}

MockFactory is a mock of Factory interface.

func NewMockFactory

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance.

func (*MockFactory) EXPECT

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFactory) IsProducingLeaderModules added in v16.3.0

func (m *MockFactory) IsProducingLeaderModules() bool

IsProducingLeaderModules mocks base method.

func (*MockFactory) Name

func (m *MockFactory) Name() string

Name mocks base method.

func (*MockFactory) New

func (m *MockFactory) New(arg0 *modagent.Config) (modagent.Module, error)

New mocks base method.

func (*MockFactory) StartStopPhase

func (m *MockFactory) StartStopPhase() modshared.ModuleStartStopPhase

StartStopPhase mocks base method.

type MockFactoryIsProducingLeaderModulesCall added in v16.8.0

type MockFactoryIsProducingLeaderModulesCall struct {
	*gomock.Call
}

MockFactoryIsProducingLeaderModulesCall wrap *gomock.Call

func (*MockFactoryIsProducingLeaderModulesCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockFactoryIsProducingLeaderModulesCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryIsProducingLeaderModulesCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockFactoryMockRecorder

type MockFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockFactoryMockRecorder is the mock recorder for MockFactory.

func (*MockFactoryMockRecorder) IsProducingLeaderModules added in v16.3.0

func (mr *MockFactoryMockRecorder) IsProducingLeaderModules() *MockFactoryIsProducingLeaderModulesCall

IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.

func (*MockFactoryMockRecorder) Name

Name indicates an expected call of Name.

func (*MockFactoryMockRecorder) New

New indicates an expected call of New.

func (*MockFactoryMockRecorder) StartStopPhase

StartStopPhase indicates an expected call of StartStopPhase.

type MockFactoryNameCall added in v16.8.0

type MockFactoryNameCall struct {
	*gomock.Call
}

MockFactoryNameCall wrap *gomock.Call

func (*MockFactoryNameCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockFactoryNameCall) DoAndReturn added in v16.8.0

func (c *MockFactoryNameCall) DoAndReturn(f func() string) *MockFactoryNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNameCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockFactoryNewCall added in v16.8.0

type MockFactoryNewCall struct {
	*gomock.Call
}

MockFactoryNewCall wrap *gomock.Call

func (*MockFactoryNewCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockFactoryNewCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryNewCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockFactoryStartStopPhaseCall added in v16.8.0

type MockFactoryStartStopPhaseCall struct {
	*gomock.Call
}

MockFactoryStartStopPhaseCall wrap *gomock.Call

func (*MockFactoryStartStopPhaseCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockFactoryStartStopPhaseCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFactoryStartStopPhaseCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockModule

type MockModule struct {
	// contains filtered or unexported fields
}

MockModule is a mock of Module interface.

func NewMockModule

func NewMockModule(ctrl *gomock.Controller) *MockModule

NewMockModule creates a new mock instance.

func (*MockModule) DefaultAndValidateConfiguration

func (m *MockModule) DefaultAndValidateConfiguration(arg0 *agentcfg.AgentConfiguration) error

DefaultAndValidateConfiguration mocks base method.

func (*MockModule) EXPECT

func (m *MockModule) EXPECT() *MockModuleMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockModule) Name

func (m *MockModule) Name() string

Name mocks base method.

func (*MockModule) Run

func (m *MockModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error

Run mocks base method.

type MockModuleDefaultAndValidateConfigurationCall added in v16.8.0

type MockModuleDefaultAndValidateConfigurationCall struct {
	*gomock.Call
}

MockModuleDefaultAndValidateConfigurationCall wrap *gomock.Call

func (*MockModuleDefaultAndValidateConfigurationCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockModuleDefaultAndValidateConfigurationCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleDefaultAndValidateConfigurationCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockModuleMockRecorder

type MockModuleMockRecorder struct {
	// contains filtered or unexported fields
}

MockModuleMockRecorder is the mock recorder for MockModule.

func (*MockModuleMockRecorder) DefaultAndValidateConfiguration

func (mr *MockModuleMockRecorder) DefaultAndValidateConfiguration(arg0 any) *MockModuleDefaultAndValidateConfigurationCall

DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.

func (*MockModuleMockRecorder) Name

Name indicates an expected call of Name.

func (*MockModuleMockRecorder) Run

func (mr *MockModuleMockRecorder) Run(arg0, arg1 any) *MockModuleRunCall

Run indicates an expected call of Run.

type MockModuleNameCall added in v16.8.0

type MockModuleNameCall struct {
	*gomock.Call
}

MockModuleNameCall wrap *gomock.Call

func (*MockModuleNameCall) Do added in v16.8.0

func (c *MockModuleNameCall) Do(f func() string) *MockModuleNameCall

Do rewrite *gomock.Call.Do

func (*MockModuleNameCall) DoAndReturn added in v16.8.0

func (c *MockModuleNameCall) DoAndReturn(f func() string) *MockModuleNameCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleNameCall) Return added in v16.8.0

func (c *MockModuleNameCall) Return(arg0 string) *MockModuleNameCall

Return rewrite *gomock.Call.Return

type MockModuleRunCall added in v16.8.0

type MockModuleRunCall struct {
	*gomock.Call
}

MockModuleRunCall wrap *gomock.Call

func (*MockModuleRunCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockModuleRunCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModuleRunCall) Return added in v16.8.0

func (c *MockModuleRunCall) Return(arg0 error) *MockModuleRunCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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