Documentation ¶
Overview ¶
Package mock_modagent is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetAgentID(arg0 context.Context) (int64, error)
- func (m *MockAPI) GetGitLabExternalURL(arg0 context.Context) (url.URL, error)
- func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 int64, arg3 string, arg4 error)
- func (m *MockAPI) MakeGitLabRequest(arg0 context.Context, arg1 string, arg2 ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)
- func (m *MockAPI) TryGetAgentID() (int64, bool)
- type MockAPIGetAgentIDCall
- type MockAPIGetGitLabExternalURLCall
- func (c *MockAPIGetGitLabExternalURLCall) Do(f func(context.Context) (url.URL, error)) *MockAPIGetGitLabExternalURLCall
- func (c *MockAPIGetGitLabExternalURLCall) DoAndReturn(f func(context.Context) (url.URL, error)) *MockAPIGetGitLabExternalURLCall
- func (c *MockAPIGetGitLabExternalURLCall) Return(arg0 url.URL, arg1 error) *MockAPIGetGitLabExternalURLCall
- type MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
- func (c *MockAPIHandleProcessingErrorCall) Return() *MockAPIHandleProcessingErrorCall
- type MockAPIMakeGitLabRequestCall
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) GetAgentID(arg0 any) *MockAPIGetAgentIDCall
- func (mr *MockAPIMockRecorder) GetGitLabExternalURL(arg0 any) *MockAPIGetGitLabExternalURLCall
- func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *MockAPIHandleProcessingErrorCall
- func (mr *MockAPIMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *MockAPIMakeGitLabRequestCall
- func (mr *MockAPIMockRecorder) TryGetAgentID() *MockAPITryGetAgentIDCall
- type MockAPITryGetAgentIDCall
- type MockFactory
- type MockFactoryIsProducingLeaderModulesCall
- func (c *MockFactoryIsProducingLeaderModulesCall) Do(f func() bool) *MockFactoryIsProducingLeaderModulesCall
- func (c *MockFactoryIsProducingLeaderModulesCall) DoAndReturn(f func() bool) *MockFactoryIsProducingLeaderModulesCall
- func (c *MockFactoryIsProducingLeaderModulesCall) Return(arg0 bool) *MockFactoryIsProducingLeaderModulesCall
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) IsProducingLeaderModules() *MockFactoryIsProducingLeaderModulesCall
- func (mr *MockFactoryMockRecorder) Name() *MockFactoryNameCall
- func (mr *MockFactoryMockRecorder) New(arg0 any) *MockFactoryNewCall
- func (mr *MockFactoryMockRecorder) StartStopPhase() *MockFactoryStartStopPhaseCall
- type MockFactoryNameCall
- type MockFactoryNewCall
- func (c *MockFactoryNewCall) Do(f func(*modagent.Config) (modagent.Module, error)) *MockFactoryNewCall
- func (c *MockFactoryNewCall) DoAndReturn(f func(*modagent.Config) (modagent.Module, error)) *MockFactoryNewCall
- func (c *MockFactoryNewCall) Return(arg0 modagent.Module, arg1 error) *MockFactoryNewCall
- type MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- func (c *MockFactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
- type MockModule
- type MockModuleDefaultAndValidateConfigurationCall
- func (c *MockModuleDefaultAndValidateConfigurationCall) Do(f func(*agentcfg.AgentConfiguration) error) *MockModuleDefaultAndValidateConfigurationCall
- func (c *MockModuleDefaultAndValidateConfigurationCall) DoAndReturn(f func(*agentcfg.AgentConfiguration) error) *MockModuleDefaultAndValidateConfigurationCall
- func (c *MockModuleDefaultAndValidateConfigurationCall) Return(arg0 error) *MockModuleDefaultAndValidateConfigurationCall
- type MockModuleMockRecorder
- type MockModuleNameCall
- type MockModuleRunCall
- func (c *MockModuleRunCall) Do(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *MockModuleRunCall
- func (c *MockModuleRunCall) DoAndReturn(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *MockModuleRunCall
- func (c *MockModuleRunCall) Return(arg0 error) *MockModuleRunCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetAgentID ¶
GetAgentID mocks base method.
func (*MockAPI) GetGitLabExternalURL ¶
GetGitLabExternalURL mocks base method.
func (*MockAPI) HandleProcessingError ¶
func (m *MockAPI) HandleProcessingError(arg0 context.Context, arg1 *zap.Logger, arg2 int64, arg3 string, arg4 error)
HandleProcessingError mocks base method.
func (*MockAPI) MakeGitLabRequest ¶
func (m *MockAPI) MakeGitLabRequest(arg0 context.Context, arg1 string, arg2 ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)
MakeGitLabRequest mocks base method.
func (*MockAPI) TryGetAgentID ¶
TryGetAgentID mocks base method.
type MockAPIGetAgentIDCall ¶
MockAPIGetAgentIDCall wrap *gomock.Call
func (*MockAPIGetAgentIDCall) Do ¶
func (c *MockAPIGetAgentIDCall) Do(f func(context.Context) (int64, error)) *MockAPIGetAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockAPIGetAgentIDCall) DoAndReturn ¶
func (c *MockAPIGetAgentIDCall) DoAndReturn(f func(context.Context) (int64, error)) *MockAPIGetAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIGetAgentIDCall) Return ¶
func (c *MockAPIGetAgentIDCall) Return(arg0 int64, arg1 error) *MockAPIGetAgentIDCall
Return rewrite *gomock.Call.Return
type MockAPIGetGitLabExternalURLCall ¶
MockAPIGetGitLabExternalURLCall wrap *gomock.Call
func (*MockAPIGetGitLabExternalURLCall) Do ¶
func (c *MockAPIGetGitLabExternalURLCall) Do(f func(context.Context) (url.URL, error)) *MockAPIGetGitLabExternalURLCall
Do rewrite *gomock.Call.Do
func (*MockAPIGetGitLabExternalURLCall) DoAndReturn ¶
func (c *MockAPIGetGitLabExternalURLCall) DoAndReturn(f func(context.Context) (url.URL, error)) *MockAPIGetGitLabExternalURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIGetGitLabExternalURLCall) Return ¶
func (c *MockAPIGetGitLabExternalURLCall) Return(arg0 url.URL, arg1 error) *MockAPIGetGitLabExternalURLCall
Return rewrite *gomock.Call.Return
type MockAPIHandleProcessingErrorCall ¶
MockAPIHandleProcessingErrorCall wrap *gomock.Call
func (*MockAPIHandleProcessingErrorCall) Do ¶
func (c *MockAPIHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
Do rewrite *gomock.Call.Do
func (*MockAPIHandleProcessingErrorCall) DoAndReturn ¶
func (c *MockAPIHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *MockAPIHandleProcessingErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIHandleProcessingErrorCall) Return ¶
func (c *MockAPIHandleProcessingErrorCall) Return() *MockAPIHandleProcessingErrorCall
Return rewrite *gomock.Call.Return
type MockAPIMakeGitLabRequestCall ¶
MockAPIMakeGitLabRequestCall wrap *gomock.Call
func (*MockAPIMakeGitLabRequestCall) Do ¶
func (c *MockAPIMakeGitLabRequestCall) Do(f func(context.Context, string, ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)) *MockAPIMakeGitLabRequestCall
Do rewrite *gomock.Call.Do
func (*MockAPIMakeGitLabRequestCall) DoAndReturn ¶
func (c *MockAPIMakeGitLabRequestCall) DoAndReturn(f func(context.Context, string, ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)) *MockAPIMakeGitLabRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPIMakeGitLabRequestCall) Return ¶
func (c *MockAPIMakeGitLabRequestCall) Return(arg0 *modagent.GitLabResponse, arg1 error) *MockAPIMakeGitLabRequestCall
Return rewrite *gomock.Call.Return
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) GetAgentID ¶
func (mr *MockAPIMockRecorder) GetAgentID(arg0 any) *MockAPIGetAgentIDCall
GetAgentID indicates an expected call of GetAgentID.
func (*MockAPIMockRecorder) GetGitLabExternalURL ¶
func (mr *MockAPIMockRecorder) GetGitLabExternalURL(arg0 any) *MockAPIGetGitLabExternalURLCall
GetGitLabExternalURL indicates an expected call of GetGitLabExternalURL.
func (*MockAPIMockRecorder) HandleProcessingError ¶
func (mr *MockAPIMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *MockAPIHandleProcessingErrorCall
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockAPIMockRecorder) MakeGitLabRequest ¶
func (mr *MockAPIMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *MockAPIMakeGitLabRequestCall
MakeGitLabRequest indicates an expected call of MakeGitLabRequest.
func (*MockAPIMockRecorder) TryGetAgentID ¶
func (mr *MockAPIMockRecorder) TryGetAgentID() *MockAPITryGetAgentIDCall
TryGetAgentID indicates an expected call of TryGetAgentID.
type MockAPITryGetAgentIDCall ¶
MockAPITryGetAgentIDCall wrap *gomock.Call
func (*MockAPITryGetAgentIDCall) Do ¶
func (c *MockAPITryGetAgentIDCall) Do(f func() (int64, bool)) *MockAPITryGetAgentIDCall
Do rewrite *gomock.Call.Do
func (*MockAPITryGetAgentIDCall) DoAndReturn ¶
func (c *MockAPITryGetAgentIDCall) DoAndReturn(f func() (int64, bool)) *MockAPITryGetAgentIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPITryGetAgentIDCall) Return ¶
func (c *MockAPITryGetAgentIDCall) Return(arg0 int64, arg1 bool) *MockAPITryGetAgentIDCall
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 ¶
func (m *MockFactory) IsProducingLeaderModules() bool
IsProducingLeaderModules mocks base method.
func (*MockFactory) StartStopPhase ¶
func (m *MockFactory) StartStopPhase() modshared.ModuleStartStopPhase
StartStopPhase mocks base method.
type MockFactoryIsProducingLeaderModulesCall ¶
MockFactoryIsProducingLeaderModulesCall wrap *gomock.Call
func (*MockFactoryIsProducingLeaderModulesCall) Do ¶
func (c *MockFactoryIsProducingLeaderModulesCall) Do(f func() bool) *MockFactoryIsProducingLeaderModulesCall
Do rewrite *gomock.Call.Do
func (*MockFactoryIsProducingLeaderModulesCall) DoAndReturn ¶
func (c *MockFactoryIsProducingLeaderModulesCall) DoAndReturn(f func() bool) *MockFactoryIsProducingLeaderModulesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryIsProducingLeaderModulesCall) Return ¶
func (c *MockFactoryIsProducingLeaderModulesCall) Return(arg0 bool) *MockFactoryIsProducingLeaderModulesCall
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 ¶
func (mr *MockFactoryMockRecorder) IsProducingLeaderModules() *MockFactoryIsProducingLeaderModulesCall
IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.
func (*MockFactoryMockRecorder) Name ¶
func (mr *MockFactoryMockRecorder) Name() *MockFactoryNameCall
Name indicates an expected call of Name.
func (*MockFactoryMockRecorder) New ¶
func (mr *MockFactoryMockRecorder) New(arg0 any) *MockFactoryNewCall
New indicates an expected call of New.
func (*MockFactoryMockRecorder) StartStopPhase ¶
func (mr *MockFactoryMockRecorder) StartStopPhase() *MockFactoryStartStopPhaseCall
StartStopPhase indicates an expected call of StartStopPhase.
type MockFactoryNameCall ¶
MockFactoryNameCall wrap *gomock.Call
func (*MockFactoryNameCall) Do ¶
func (c *MockFactoryNameCall) Do(f func() string) *MockFactoryNameCall
Do rewrite *gomock.Call.Do
func (*MockFactoryNameCall) DoAndReturn ¶
func (c *MockFactoryNameCall) DoAndReturn(f func() string) *MockFactoryNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryNameCall) Return ¶
func (c *MockFactoryNameCall) Return(arg0 string) *MockFactoryNameCall
Return rewrite *gomock.Call.Return
type MockFactoryNewCall ¶
MockFactoryNewCall wrap *gomock.Call
func (*MockFactoryNewCall) Do ¶
func (c *MockFactoryNewCall) Do(f func(*modagent.Config) (modagent.Module, error)) *MockFactoryNewCall
Do rewrite *gomock.Call.Do
func (*MockFactoryNewCall) DoAndReturn ¶
func (c *MockFactoryNewCall) DoAndReturn(f func(*modagent.Config) (modagent.Module, error)) *MockFactoryNewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryNewCall) Return ¶
func (c *MockFactoryNewCall) Return(arg0 modagent.Module, arg1 error) *MockFactoryNewCall
Return rewrite *gomock.Call.Return
type MockFactoryStartStopPhaseCall ¶
MockFactoryStartStopPhaseCall wrap *gomock.Call
func (*MockFactoryStartStopPhaseCall) Do ¶
func (c *MockFactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
Do rewrite *gomock.Call.Do
func (*MockFactoryStartStopPhaseCall) DoAndReturn ¶
func (c *MockFactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFactoryStartStopPhaseCall) Return ¶
func (c *MockFactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *MockFactoryStartStopPhaseCall
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) Run ¶
func (m *MockModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error
Run mocks base method.
type MockModuleDefaultAndValidateConfigurationCall ¶
MockModuleDefaultAndValidateConfigurationCall wrap *gomock.Call
func (*MockModuleDefaultAndValidateConfigurationCall) Do ¶
func (c *MockModuleDefaultAndValidateConfigurationCall) Do(f func(*agentcfg.AgentConfiguration) error) *MockModuleDefaultAndValidateConfigurationCall
Do rewrite *gomock.Call.Do
func (*MockModuleDefaultAndValidateConfigurationCall) DoAndReturn ¶
func (c *MockModuleDefaultAndValidateConfigurationCall) DoAndReturn(f func(*agentcfg.AgentConfiguration) error) *MockModuleDefaultAndValidateConfigurationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModuleDefaultAndValidateConfigurationCall) Return ¶
func (c *MockModuleDefaultAndValidateConfigurationCall) Return(arg0 error) *MockModuleDefaultAndValidateConfigurationCall
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 ¶
func (mr *MockModuleMockRecorder) Name() *MockModuleNameCall
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 ¶
MockModuleNameCall wrap *gomock.Call
func (*MockModuleNameCall) Do ¶
func (c *MockModuleNameCall) Do(f func() string) *MockModuleNameCall
Do rewrite *gomock.Call.Do
func (*MockModuleNameCall) DoAndReturn ¶
func (c *MockModuleNameCall) DoAndReturn(f func() string) *MockModuleNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModuleNameCall) Return ¶
func (c *MockModuleNameCall) Return(arg0 string) *MockModuleNameCall
Return rewrite *gomock.Call.Return
type MockModuleRunCall ¶
MockModuleRunCall wrap *gomock.Call
func (*MockModuleRunCall) Do ¶
func (c *MockModuleRunCall) Do(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *MockModuleRunCall
Do rewrite *gomock.Call.Do
func (*MockModuleRunCall) DoAndReturn ¶
func (c *MockModuleRunCall) DoAndReturn(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *MockModuleRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModuleRunCall) Return ¶
func (c *MockModuleRunCall) Return(arg0 error) *MockModuleRunCall
Return rewrite *gomock.Call.Return