Documentation ¶
Overview ¶
Package mock_eventfilter is a generated GoMock package.
Index ¶
- type MockActionProcessor
- type MockActionProcessorMockRecorder
- type MockEventCounter
- type MockEventCounterMockRecorder
- type MockExternalDataGetter
- type MockExternalDataGetterMockRecorder
- type MockFailureService
- type MockFailureServiceMockRecorder
- type MockRuleAdapter
- type MockRuleAdapterMockRecorder
- type MockRuleApplicator
- type MockRuleApplicatorContainer
- type MockRuleApplicatorContainerMockRecorder
- type MockRuleApplicatorMockRecorder
- type MockService
- type MockServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActionProcessor ¶
type MockActionProcessor struct {
// contains filtered or unexported fields
}
MockActionProcessor is a mock of ActionProcessor interface.
func NewMockActionProcessor ¶
func NewMockActionProcessor(ctrl *gomock.Controller) *MockActionProcessor
NewMockActionProcessor creates a new mock instance.
func (*MockActionProcessor) EXPECT ¶
func (m *MockActionProcessor) EXPECT() *MockActionProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActionProcessor) Process ¶
func (m *MockActionProcessor) Process(arg0 context.Context, arg1 string, arg2 eventfilter.ParsedAction, arg3 *types.Event, arg4 eventfilter.RegexMatch, arg5 map[string]interface{}) (bool, error)
Process mocks base method.
type MockActionProcessorMockRecorder ¶
type MockActionProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockActionProcessorMockRecorder is the mock recorder for MockActionProcessor.
func (*MockActionProcessorMockRecorder) Process ¶
func (mr *MockActionProcessorMockRecorder) Process(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Process indicates an expected call of Process.
type MockEventCounter ¶
type MockEventCounter struct {
// contains filtered or unexported fields
}
MockEventCounter is a mock of EventCounter interface.
func NewMockEventCounter ¶
func NewMockEventCounter(ctrl *gomock.Controller) *MockEventCounter
NewMockEventCounter creates a new mock instance.
func (*MockEventCounter) Add ¶
func (m *MockEventCounter) Add(arg0 string, arg1 datetime.CpsTime)
Add mocks base method.
func (*MockEventCounter) EXPECT ¶
func (m *MockEventCounter) EXPECT() *MockEventCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEventCounter) Run ¶
func (m *MockEventCounter) Run(arg0 context.Context)
Run mocks base method.
type MockEventCounterMockRecorder ¶
type MockEventCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockEventCounterMockRecorder is the mock recorder for MockEventCounter.
func (*MockEventCounterMockRecorder) Add ¶
func (mr *MockEventCounterMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockEventCounterMockRecorder) Run ¶
func (mr *MockEventCounterMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockExternalDataGetter ¶
type MockExternalDataGetter struct {
// contains filtered or unexported fields
}
MockExternalDataGetter is a mock of ExternalDataGetter interface.
func NewMockExternalDataGetter ¶
func NewMockExternalDataGetter(ctrl *gomock.Controller) *MockExternalDataGetter
NewMockExternalDataGetter creates a new mock instance.
func (*MockExternalDataGetter) EXPECT ¶
func (m *MockExternalDataGetter) EXPECT() *MockExternalDataGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExternalDataGetter) Get ¶
func (m *MockExternalDataGetter) Get(arg0 context.Context, arg1, arg2 string, arg3 *types.Event, arg4 eventfilter.ParsedExternalDataParameters, arg5 eventfilter.Template) (interface{}, error)
Get mocks base method.
type MockExternalDataGetterMockRecorder ¶
type MockExternalDataGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalDataGetterMockRecorder is the mock recorder for MockExternalDataGetter.
func (*MockExternalDataGetterMockRecorder) Get ¶
func (mr *MockExternalDataGetterMockRecorder) Get(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockFailureService ¶
type MockFailureService struct {
// contains filtered or unexported fields
}
MockFailureService is a mock of FailureService interface.
func NewMockFailureService ¶
func NewMockFailureService(ctrl *gomock.Controller) *MockFailureService
NewMockFailureService creates a new mock instance.
func (*MockFailureService) EXPECT ¶
func (m *MockFailureService) EXPECT() *MockFailureServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFailureService) Run ¶
func (m *MockFailureService) Run(arg0 context.Context)
Run mocks base method.
type MockFailureServiceMockRecorder ¶
type MockFailureServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockFailureServiceMockRecorder is the mock recorder for MockFailureService.
func (*MockFailureServiceMockRecorder) Add ¶
func (mr *MockFailureServiceMockRecorder) Add(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockFailureServiceMockRecorder) Run ¶
func (mr *MockFailureServiceMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockRuleAdapter ¶
type MockRuleAdapter struct {
// contains filtered or unexported fields
}
MockRuleAdapter is a mock of RuleAdapter interface.
func NewMockRuleAdapter ¶
func NewMockRuleAdapter(ctrl *gomock.Controller) *MockRuleAdapter
NewMockRuleAdapter creates a new mock instance.
func (*MockRuleAdapter) EXPECT ¶
func (m *MockRuleAdapter) EXPECT() *MockRuleAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRuleAdapter) GetAll ¶
func (m *MockRuleAdapter) GetAll(arg0 context.Context) ([]eventfilter.Rule, error)
GetAll mocks base method.
func (*MockRuleAdapter) GetByTypes ¶
func (m *MockRuleAdapter) GetByTypes(arg0 context.Context, arg1 []string) ([]eventfilter.Rule, error)
GetByTypes mocks base method.
type MockRuleAdapterMockRecorder ¶
type MockRuleAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockRuleAdapterMockRecorder is the mock recorder for MockRuleAdapter.
func (*MockRuleAdapterMockRecorder) GetAll ¶
func (mr *MockRuleAdapterMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockRuleAdapterMockRecorder) GetByTypes ¶
func (mr *MockRuleAdapterMockRecorder) GetByTypes(arg0, arg1 interface{}) *gomock.Call
GetByTypes indicates an expected call of GetByTypes.
type MockRuleApplicator ¶
type MockRuleApplicator struct {
// contains filtered or unexported fields
}
MockRuleApplicator is a mock of RuleApplicator interface.
func NewMockRuleApplicator ¶
func NewMockRuleApplicator(ctrl *gomock.Controller) *MockRuleApplicator
NewMockRuleApplicator creates a new mock instance.
func (*MockRuleApplicator) Apply ¶
func (m *MockRuleApplicator) Apply(arg0 context.Context, arg1 eventfilter.ParsedRule, arg2 *types.Event, arg3 eventfilter.RegexMatch) (string, bool, map[string]int64, error)
Apply mocks base method.
func (*MockRuleApplicator) EXPECT ¶
func (m *MockRuleApplicator) EXPECT() *MockRuleApplicatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRuleApplicatorContainer ¶
type MockRuleApplicatorContainer struct {
// contains filtered or unexported fields
}
MockRuleApplicatorContainer is a mock of RuleApplicatorContainer interface.
func NewMockRuleApplicatorContainer ¶
func NewMockRuleApplicatorContainer(ctrl *gomock.Controller) *MockRuleApplicatorContainer
NewMockRuleApplicatorContainer creates a new mock instance.
func (*MockRuleApplicatorContainer) EXPECT ¶
func (m *MockRuleApplicatorContainer) EXPECT() *MockRuleApplicatorContainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRuleApplicatorContainer) Get ¶
func (m *MockRuleApplicatorContainer) Get(arg0 string) (eventfilter.RuleApplicator, bool)
Get mocks base method.
func (*MockRuleApplicatorContainer) Set ¶
func (m *MockRuleApplicatorContainer) Set(arg0 string, arg1 eventfilter.RuleApplicator)
Set mocks base method.
type MockRuleApplicatorContainerMockRecorder ¶
type MockRuleApplicatorContainerMockRecorder struct {
// contains filtered or unexported fields
}
MockRuleApplicatorContainerMockRecorder is the mock recorder for MockRuleApplicatorContainer.
func (*MockRuleApplicatorContainerMockRecorder) Get ¶
func (mr *MockRuleApplicatorContainerMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRuleApplicatorContainerMockRecorder) Set ¶
func (mr *MockRuleApplicatorContainerMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockRuleApplicatorMockRecorder ¶
type MockRuleApplicatorMockRecorder struct {
// contains filtered or unexported fields
}
MockRuleApplicatorMockRecorder is the mock recorder for MockRuleApplicator.
func (*MockRuleApplicatorMockRecorder) Apply ¶
func (mr *MockRuleApplicatorMockRecorder) Apply(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Apply indicates an expected call of Apply.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) LoadRules ¶
func (mr *MockServiceMockRecorder) LoadRules(arg0, arg1 interface{}) *gomock.Call
LoadRules indicates an expected call of LoadRules.
func (*MockServiceMockRecorder) ProcessEvent ¶
func (mr *MockServiceMockRecorder) ProcessEvent(arg0, arg1 interface{}) *gomock.Call
ProcessEvent indicates an expected call of ProcessEvent.