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) 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) 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 MockLeaderModule
- func (m *MockLeaderModule) DefaultAndValidateConfiguration(arg0 *agentcfg.AgentConfiguration) error
- func (m *MockLeaderModule) EXPECT() *MockLeaderModuleMockRecorder
- func (m *MockLeaderModule) IsRunnableConfiguration(arg0 *agentcfg.AgentConfiguration) bool
- func (m *MockLeaderModule) Name() string
- func (m *MockLeaderModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error
- type MockLeaderModuleMockRecorder
- func (mr *MockLeaderModuleMockRecorder) DefaultAndValidateConfiguration(arg0 interface{}) *gomock.Call
- func (mr *MockLeaderModuleMockRecorder) IsRunnableConfiguration(arg0 interface{}) *gomock.Call
- func (mr *MockLeaderModuleMockRecorder) Name() *gomock.Call
- func (mr *MockLeaderModuleMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- 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 ¶ added in v15.5.0
GetAgentId 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 ¶ added in v15.5.0
TryGetAgentId mocks base method.
type MockApiMockRecorder ¶
type MockApiMockRecorder struct {
// contains filtered or unexported fields
}
MockApiMockRecorder is the mock recorder for MockApi.
func (*MockApiMockRecorder) GetAgentId ¶ added in v15.5.0
func (mr *MockApiMockRecorder) GetAgentId(arg0 interface{}) *gomock.Call
GetAgentId indicates an expected call of GetAgentId.
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 ¶ added in v15.5.0
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) UsesInternalServer ¶ added in v15.1.0
func (m *MockFactory) UsesInternalServer() bool
UsesInternalServer mocks base method.
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
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) UsesInternalServer ¶ added in v15.1.0
func (mr *MockFactoryMockRecorder) UsesInternalServer() *gomock.Call
UsesInternalServer indicates an expected call of UsesInternalServer.
type MockLeaderModule ¶ added in v15.4.0
type MockLeaderModule struct {
// contains filtered or unexported fields
}
MockLeaderModule is a mock of LeaderModule interface.
func NewMockLeaderModule ¶ added in v15.4.0
func NewMockLeaderModule(ctrl *gomock.Controller) *MockLeaderModule
NewMockLeaderModule creates a new mock instance.
func (*MockLeaderModule) DefaultAndValidateConfiguration ¶ added in v15.4.0
func (m *MockLeaderModule) DefaultAndValidateConfiguration(arg0 *agentcfg.AgentConfiguration) error
DefaultAndValidateConfiguration mocks base method.
func (*MockLeaderModule) EXPECT ¶ added in v15.4.0
func (m *MockLeaderModule) EXPECT() *MockLeaderModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLeaderModule) IsRunnableConfiguration ¶ added in v15.4.0
func (m *MockLeaderModule) IsRunnableConfiguration(arg0 *agentcfg.AgentConfiguration) bool
IsRunnableConfiguration mocks base method.
func (*MockLeaderModule) Name ¶ added in v15.4.0
func (m *MockLeaderModule) Name() string
Name mocks base method.
func (*MockLeaderModule) Run ¶ added in v15.4.0
func (m *MockLeaderModule) Run(arg0 context.Context, arg1 <-chan *agentcfg.AgentConfiguration) error
Run mocks base method.
type MockLeaderModuleMockRecorder ¶ added in v15.4.0
type MockLeaderModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockLeaderModuleMockRecorder is the mock recorder for MockLeaderModule.
func (*MockLeaderModuleMockRecorder) DefaultAndValidateConfiguration ¶ added in v15.4.0
func (mr *MockLeaderModuleMockRecorder) DefaultAndValidateConfiguration(arg0 interface{}) *gomock.Call
DefaultAndValidateConfiguration indicates an expected call of DefaultAndValidateConfiguration.
func (*MockLeaderModuleMockRecorder) IsRunnableConfiguration ¶ added in v15.4.0
func (mr *MockLeaderModuleMockRecorder) IsRunnableConfiguration(arg0 interface{}) *gomock.Call
IsRunnableConfiguration indicates an expected call of IsRunnableConfiguration.
func (*MockLeaderModuleMockRecorder) Name ¶ added in v15.4.0
func (mr *MockLeaderModuleMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockLeaderModuleMockRecorder) Run ¶ added in v15.4.0
func (mr *MockLeaderModuleMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
Run indicates an expected call of Run.
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.