Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/modagent (interfaces: Api,Factory,Module)
Generated by this command:
mockgen -typed -destination api.go -package mock_modagent gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/modagent Api,Factory,Module
Package mock_modagent is a generated GoMock package.
Index ¶
- type ApiGetAgentIdCall
- type ApiGetGitLabExternalUrlCall
- func (c *ApiGetGitLabExternalUrlCall) Do(f func(context.Context) (url.URL, error)) *ApiGetGitLabExternalUrlCall
- func (c *ApiGetGitLabExternalUrlCall) DoAndReturn(f func(context.Context) (url.URL, error)) *ApiGetGitLabExternalUrlCall
- func (c *ApiGetGitLabExternalUrlCall) Return(arg0 url.URL, arg1 error) *ApiGetGitLabExternalUrlCall
- type ApiHandleProcessingErrorCall
- func (c *ApiHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *ApiHandleProcessingErrorCall
- func (c *ApiHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *ApiHandleProcessingErrorCall
- func (c *ApiHandleProcessingErrorCall) Return() *ApiHandleProcessingErrorCall
- type ApiMakeGitLabRequestCall
- type ApiTryGetAgentIdCall
- type FactoryIsProducingLeaderModulesCall
- func (c *FactoryIsProducingLeaderModulesCall) Do(f func() bool) *FactoryIsProducingLeaderModulesCall
- func (c *FactoryIsProducingLeaderModulesCall) DoAndReturn(f func() bool) *FactoryIsProducingLeaderModulesCall
- func (c *FactoryIsProducingLeaderModulesCall) Return(arg0 bool) *FactoryIsProducingLeaderModulesCall
- type FactoryNameCall
- type FactoryNewCall
- type FactoryStartStopPhaseCall
- func (c *FactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
- func (c *FactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
- func (c *FactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
- 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 MockApiMockRecorder
- func (mr *MockApiMockRecorder) GetAgentId(arg0 any) *ApiGetAgentIdCall
- func (mr *MockApiMockRecorder) GetGitLabExternalUrl(arg0 any) *ApiGetGitLabExternalUrlCall
- func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *ApiHandleProcessingErrorCall
- func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *ApiMakeGitLabRequestCall
- func (mr *MockApiMockRecorder) TryGetAgentId() *ApiTryGetAgentIdCall
- type MockFactory
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) IsProducingLeaderModules() *FactoryIsProducingLeaderModulesCall
- func (mr *MockFactoryMockRecorder) Name() *FactoryNameCall
- func (mr *MockFactoryMockRecorder) New(arg0 any) *FactoryNewCall
- func (mr *MockFactoryMockRecorder) StartStopPhase() *FactoryStartStopPhaseCall
- type MockModule
- type MockModuleMockRecorder
- type ModuleDefaultAndValidateConfigurationCall
- func (c *ModuleDefaultAndValidateConfigurationCall) Do(f func(*agentcfg.AgentConfiguration) error) *ModuleDefaultAndValidateConfigurationCall
- func (c *ModuleDefaultAndValidateConfigurationCall) DoAndReturn(f func(*agentcfg.AgentConfiguration) error) *ModuleDefaultAndValidateConfigurationCall
- func (c *ModuleDefaultAndValidateConfigurationCall) Return(arg0 error) *ModuleDefaultAndValidateConfigurationCall
- type ModuleNameCall
- type ModuleRunCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiGetAgentIdCall ¶ added in v16.5.0
ApiGetAgentIdCall wrap *gomock.Call
func (*ApiGetAgentIdCall) Do ¶ added in v16.5.0
func (c *ApiGetAgentIdCall) Do(f func(context.Context) (int64, error)) *ApiGetAgentIdCall
Do rewrite *gomock.Call.Do
func (*ApiGetAgentIdCall) DoAndReturn ¶ added in v16.5.0
func (c *ApiGetAgentIdCall) DoAndReturn(f func(context.Context) (int64, error)) *ApiGetAgentIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiGetAgentIdCall) Return ¶ added in v16.5.0
func (c *ApiGetAgentIdCall) Return(arg0 int64, arg1 error) *ApiGetAgentIdCall
Return rewrite *gomock.Call.Return
type ApiGetGitLabExternalUrlCall ¶ added in v16.5.0
ApiGetGitLabExternalUrlCall wrap *gomock.Call
func (*ApiGetGitLabExternalUrlCall) Do ¶ added in v16.5.0
func (c *ApiGetGitLabExternalUrlCall) Do(f func(context.Context) (url.URL, error)) *ApiGetGitLabExternalUrlCall
Do rewrite *gomock.Call.Do
func (*ApiGetGitLabExternalUrlCall) DoAndReturn ¶ added in v16.5.0
func (c *ApiGetGitLabExternalUrlCall) DoAndReturn(f func(context.Context) (url.URL, error)) *ApiGetGitLabExternalUrlCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiGetGitLabExternalUrlCall) Return ¶ added in v16.5.0
func (c *ApiGetGitLabExternalUrlCall) Return(arg0 url.URL, arg1 error) *ApiGetGitLabExternalUrlCall
Return rewrite *gomock.Call.Return
type ApiHandleProcessingErrorCall ¶ added in v16.5.0
ApiHandleProcessingErrorCall wrap *gomock.Call
func (*ApiHandleProcessingErrorCall) Do ¶ added in v16.5.0
func (c *ApiHandleProcessingErrorCall) Do(f func(context.Context, *zap.Logger, int64, string, error)) *ApiHandleProcessingErrorCall
Do rewrite *gomock.Call.Do
func (*ApiHandleProcessingErrorCall) DoAndReturn ¶ added in v16.5.0
func (c *ApiHandleProcessingErrorCall) DoAndReturn(f func(context.Context, *zap.Logger, int64, string, error)) *ApiHandleProcessingErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiHandleProcessingErrorCall) Return ¶ added in v16.5.0
func (c *ApiHandleProcessingErrorCall) Return() *ApiHandleProcessingErrorCall
Return rewrite *gomock.Call.Return
type ApiMakeGitLabRequestCall ¶ added in v16.5.0
ApiMakeGitLabRequestCall wrap *gomock.Call
func (*ApiMakeGitLabRequestCall) Do ¶ added in v16.5.0
func (c *ApiMakeGitLabRequestCall) Do(f func(context.Context, string, ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)) *ApiMakeGitLabRequestCall
Do rewrite *gomock.Call.Do
func (*ApiMakeGitLabRequestCall) DoAndReturn ¶ added in v16.5.0
func (c *ApiMakeGitLabRequestCall) DoAndReturn(f func(context.Context, string, ...modagent.GitLabRequestOption) (*modagent.GitLabResponse, error)) *ApiMakeGitLabRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiMakeGitLabRequestCall) Return ¶ added in v16.5.0
func (c *ApiMakeGitLabRequestCall) Return(arg0 *modagent.GitLabResponse, arg1 error) *ApiMakeGitLabRequestCall
Return rewrite *gomock.Call.Return
type ApiTryGetAgentIdCall ¶ added in v16.5.0
ApiTryGetAgentIdCall wrap *gomock.Call
func (*ApiTryGetAgentIdCall) Do ¶ added in v16.5.0
func (c *ApiTryGetAgentIdCall) Do(f func() (int64, bool)) *ApiTryGetAgentIdCall
Do rewrite *gomock.Call.Do
func (*ApiTryGetAgentIdCall) DoAndReturn ¶ added in v16.5.0
func (c *ApiTryGetAgentIdCall) DoAndReturn(f func() (int64, bool)) *ApiTryGetAgentIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ApiTryGetAgentIdCall) Return ¶ added in v16.5.0
func (c *ApiTryGetAgentIdCall) Return(arg0 int64, arg1 bool) *ApiTryGetAgentIdCall
Return rewrite *gomock.Call.Return
type FactoryIsProducingLeaderModulesCall ¶ added in v16.5.0
FactoryIsProducingLeaderModulesCall wrap *gomock.Call
func (*FactoryIsProducingLeaderModulesCall) Do ¶ added in v16.5.0
func (c *FactoryIsProducingLeaderModulesCall) Do(f func() bool) *FactoryIsProducingLeaderModulesCall
Do rewrite *gomock.Call.Do
func (*FactoryIsProducingLeaderModulesCall) DoAndReturn ¶ added in v16.5.0
func (c *FactoryIsProducingLeaderModulesCall) DoAndReturn(f func() bool) *FactoryIsProducingLeaderModulesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FactoryIsProducingLeaderModulesCall) Return ¶ added in v16.5.0
func (c *FactoryIsProducingLeaderModulesCall) Return(arg0 bool) *FactoryIsProducingLeaderModulesCall
Return rewrite *gomock.Call.Return
type FactoryNameCall ¶ added in v16.5.0
FactoryNameCall wrap *gomock.Call
func (*FactoryNameCall) Do ¶ added in v16.5.0
func (c *FactoryNameCall) Do(f func() string) *FactoryNameCall
Do rewrite *gomock.Call.Do
func (*FactoryNameCall) DoAndReturn ¶ added in v16.5.0
func (c *FactoryNameCall) DoAndReturn(f func() string) *FactoryNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FactoryNameCall) Return ¶ added in v16.5.0
func (c *FactoryNameCall) Return(arg0 string) *FactoryNameCall
Return rewrite *gomock.Call.Return
type FactoryNewCall ¶ added in v16.5.0
FactoryNewCall wrap *gomock.Call
func (*FactoryNewCall) Do ¶ added in v16.5.0
func (c *FactoryNewCall) Do(f func(*modagent.Config) (modagent.Module, error)) *FactoryNewCall
Do rewrite *gomock.Call.Do
func (*FactoryNewCall) DoAndReturn ¶ added in v16.5.0
func (c *FactoryNewCall) DoAndReturn(f func(*modagent.Config) (modagent.Module, error)) *FactoryNewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FactoryNewCall) Return ¶ added in v16.5.0
func (c *FactoryNewCall) Return(arg0 modagent.Module, arg1 error) *FactoryNewCall
Return rewrite *gomock.Call.Return
type FactoryStartStopPhaseCall ¶ added in v16.5.0
FactoryStartStopPhaseCall wrap *gomock.Call
func (*FactoryStartStopPhaseCall) Do ¶ added in v16.5.0
func (c *FactoryStartStopPhaseCall) Do(f func() modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
Do rewrite *gomock.Call.Do
func (*FactoryStartStopPhaseCall) DoAndReturn ¶ added in v16.5.0
func (c *FactoryStartStopPhaseCall) DoAndReturn(f func() modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*FactoryStartStopPhaseCall) Return ¶ added in v16.5.0
func (c *FactoryStartStopPhaseCall) Return(arg0 modshared.ModuleStartStopPhase) *FactoryStartStopPhaseCall
Return rewrite *gomock.Call.Return
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 ¶ added in v16.1.0
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 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) *ApiGetAgentIdCall
GetAgentId indicates an expected call of GetAgentId.
func (*MockApiMockRecorder) GetGitLabExternalUrl ¶ added in v16.1.0
func (mr *MockApiMockRecorder) GetGitLabExternalUrl(arg0 any) *ApiGetGitLabExternalUrlCall
GetGitLabExternalUrl indicates an expected call of GetGitLabExternalUrl.
func (*MockApiMockRecorder) HandleProcessingError ¶
func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 any) *ApiHandleProcessingErrorCall
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockApiMockRecorder) MakeGitLabRequest ¶
func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 any, arg2 ...any) *ApiMakeGitLabRequestCall
MakeGitLabRequest indicates an expected call of MakeGitLabRequest.
func (*MockApiMockRecorder) TryGetAgentId ¶
func (mr *MockApiMockRecorder) TryGetAgentId() *ApiTryGetAgentIdCall
TryGetAgentId indicates an expected call of TryGetAgentId.
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) StartStopPhase ¶
func (m *MockFactory) StartStopPhase() modshared.ModuleStartStopPhase
StartStopPhase mocks base method.
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() *FactoryIsProducingLeaderModulesCall
IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.
func (*MockFactoryMockRecorder) Name ¶
func (mr *MockFactoryMockRecorder) Name() *FactoryNameCall
Name indicates an expected call of Name.
func (*MockFactoryMockRecorder) New ¶
func (mr *MockFactoryMockRecorder) New(arg0 any) *FactoryNewCall
New indicates an expected call of New.
func (*MockFactoryMockRecorder) StartStopPhase ¶
func (mr *MockFactoryMockRecorder) StartStopPhase() *FactoryStartStopPhaseCall
StartStopPhase indicates an expected call of StartStopPhase.
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 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) *ModuleDefaultAndValidateConfigurationCall
DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.
func (*MockModuleMockRecorder) Name ¶
func (mr *MockModuleMockRecorder) Name() *ModuleNameCall
Name indicates an expected call of Name.
func (*MockModuleMockRecorder) Run ¶
func (mr *MockModuleMockRecorder) Run(arg0, arg1 any) *ModuleRunCall
Run indicates an expected call of Run.
type ModuleDefaultAndValidateConfigurationCall ¶ added in v16.5.0
ModuleDefaultAndValidateConfigurationCall wrap *gomock.Call
func (*ModuleDefaultAndValidateConfigurationCall) Do ¶ added in v16.5.0
func (c *ModuleDefaultAndValidateConfigurationCall) Do(f func(*agentcfg.AgentConfiguration) error) *ModuleDefaultAndValidateConfigurationCall
Do rewrite *gomock.Call.Do
func (*ModuleDefaultAndValidateConfigurationCall) DoAndReturn ¶ added in v16.5.0
func (c *ModuleDefaultAndValidateConfigurationCall) DoAndReturn(f func(*agentcfg.AgentConfiguration) error) *ModuleDefaultAndValidateConfigurationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ModuleDefaultAndValidateConfigurationCall) Return ¶ added in v16.5.0
func (c *ModuleDefaultAndValidateConfigurationCall) Return(arg0 error) *ModuleDefaultAndValidateConfigurationCall
Return rewrite *gomock.Call.Return
type ModuleNameCall ¶ added in v16.5.0
ModuleNameCall wrap *gomock.Call
func (*ModuleNameCall) Do ¶ added in v16.5.0
func (c *ModuleNameCall) Do(f func() string) *ModuleNameCall
Do rewrite *gomock.Call.Do
func (*ModuleNameCall) DoAndReturn ¶ added in v16.5.0
func (c *ModuleNameCall) DoAndReturn(f func() string) *ModuleNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ModuleNameCall) Return ¶ added in v16.5.0
func (c *ModuleNameCall) Return(arg0 string) *ModuleNameCall
Return rewrite *gomock.Call.Return
type ModuleRunCall ¶ added in v16.5.0
ModuleRunCall wrap *gomock.Call
func (*ModuleRunCall) Do ¶ added in v16.5.0
func (c *ModuleRunCall) Do(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *ModuleRunCall
Do rewrite *gomock.Call.Do
func (*ModuleRunCall) DoAndReturn ¶ added in v16.5.0
func (c *ModuleRunCall) DoAndReturn(f func(context.Context, <-chan *agentcfg.AgentConfiguration) error) *ModuleRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ModuleRunCall) Return ¶ added in v16.5.0
func (c *ModuleRunCall) Return(arg0 error) *ModuleRunCall
Return rewrite *gomock.Call.Return