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 MockApiMockRecorder
- func (mr *MockApiMockRecorder) GetAgentId(arg0 interface{}) *gomock.Call
- func (mr *MockApiMockRecorder) GetGitLabExternalUrl(arg0 interface{}) *gomock.Call
- func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockApiMockRecorder) TryGetAgentId() *gomock.Call
- type MockFactory
- type MockFactoryMockRecorder
- type MockModule
- type MockModuleMockRecorder
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 ¶ 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 interface{}) *gomock.Call
GetAgentId indicates an expected call of GetAgentId.
func (*MockApiMockRecorder) GetGitLabExternalUrl ¶ added in v16.1.0
func (mr *MockApiMockRecorder) GetGitLabExternalUrl(arg0 interface{}) *gomock.Call
GetGitLabExternalUrl indicates an expected call of GetGitLabExternalUrl.
func (*MockApiMockRecorder) HandleProcessingError ¶
func (mr *MockApiMockRecorder) HandleProcessingError(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
HandleProcessingError indicates an expected call of HandleProcessingError.
func (*MockApiMockRecorder) MakeGitLabRequest ¶
func (mr *MockApiMockRecorder) MakeGitLabRequest(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
MakeGitLabRequest indicates an expected call of MakeGitLabRequest.
func (*MockApiMockRecorder) TryGetAgentId ¶
func (mr *MockApiMockRecorder) TryGetAgentId() *gomock.Call
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() *gomock.Call
IsProducingLeaderModules indicates an expected call of IsProducingLeaderModules.
func (*MockFactoryMockRecorder) Name ¶
func (mr *MockFactoryMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFactoryMockRecorder) New ¶
func (mr *MockFactoryMockRecorder) New(arg0 interface{}) *gomock.Call
New indicates an expected call of New.
func (*MockFactoryMockRecorder) StartStopPhase ¶
func (mr *MockFactoryMockRecorder) StartStopPhase() *gomock.Call
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 interface{}) *gomock.Call
DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.
func (*MockModuleMockRecorder) Name ¶
func (mr *MockModuleMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockModuleMockRecorder) Run ¶
func (mr *MockModuleMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.