Documentation ¶
Index ¶
- type CommonDataProvider
- type ElasticCommonDataProvider
- type Enricher
- type IdProvider
- type MockCommonDataProvider
- type MockCommonDataProvider_EnrichEvent_Call
- func (_c *MockCommonDataProvider_EnrichEvent_Call) Return(_a0 error) *MockCommonDataProvider_EnrichEvent_Call
- func (_c *MockCommonDataProvider_EnrichEvent_Call) Run(run func(event *beat.Event, resource fetching.ResourceMetadata)) *MockCommonDataProvider_EnrichEvent_Call
- func (_c *MockCommonDataProvider_EnrichEvent_Call) RunAndReturn(run func(*beat.Event, fetching.ResourceMetadata) error) *MockCommonDataProvider_EnrichEvent_Call
- type MockCommonDataProvider_Expecter
- type MockElasticCommonDataProvider
- type MockElasticCommonDataProvider_Expecter
- type MockElasticCommonDataProvider_GetElasticCommonData_Call
- func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) Return(_a0 map[string]interface{}, _a1 error) *MockElasticCommonDataProvider_GetElasticCommonData_Call
- func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) Run(run func()) *MockElasticCommonDataProvider_GetElasticCommonData_Call
- func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) RunAndReturn(run func() (map[string]interface{}, error)) *MockElasticCommonDataProvider_GetElasticCommonData_Call
- type MockIdProvider
- type MockIdProvider_Expecter
- type MockIdProvider_GetId_Call
- func (_c *MockIdProvider_GetId_Call) Return(_a0 string) *MockIdProvider_GetId_Call
- func (_c *MockIdProvider_GetId_Call) Run(run func(resourceType string, resourceId string)) *MockIdProvider_GetId_Call
- func (_c *MockIdProvider_GetId_Call) RunAndReturn(run func(string, string) string) *MockIdProvider_GetId_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonDataProvider ¶
type CommonDataProvider interface {
EnrichEvent(event *beat.Event, resource fetching.ResourceMetadata) error
}
type Enricher ¶
type Enricher struct {
// contains filtered or unexported fields
}
func NewEnricher ¶
func NewEnricher(dataprovider ElasticCommonDataProvider) *Enricher
type IdProvider ¶
type MockCommonDataProvider ¶
MockCommonDataProvider is an autogenerated mock type for the CommonDataProvider type
func NewMockCommonDataProvider ¶
func NewMockCommonDataProvider(t interface { mock.TestingT Cleanup(func()) }) *MockCommonDataProvider
NewMockCommonDataProvider creates a new instance of MockCommonDataProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCommonDataProvider) EXPECT ¶
func (_m *MockCommonDataProvider) EXPECT() *MockCommonDataProvider_Expecter
func (*MockCommonDataProvider) EnrichEvent ¶
func (_m *MockCommonDataProvider) EnrichEvent(event *beat.Event, resource fetching.ResourceMetadata) error
EnrichEvent provides a mock function with given fields: event, resource
type MockCommonDataProvider_EnrichEvent_Call ¶
MockCommonDataProvider_EnrichEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnrichEvent'
func (*MockCommonDataProvider_EnrichEvent_Call) Return ¶
func (_c *MockCommonDataProvider_EnrichEvent_Call) Return(_a0 error) *MockCommonDataProvider_EnrichEvent_Call
func (*MockCommonDataProvider_EnrichEvent_Call) Run ¶
func (_c *MockCommonDataProvider_EnrichEvent_Call) Run(run func(event *beat.Event, resource fetching.ResourceMetadata)) *MockCommonDataProvider_EnrichEvent_Call
func (*MockCommonDataProvider_EnrichEvent_Call) RunAndReturn ¶
func (_c *MockCommonDataProvider_EnrichEvent_Call) RunAndReturn(run func(*beat.Event, fetching.ResourceMetadata) error) *MockCommonDataProvider_EnrichEvent_Call
type MockCommonDataProvider_Expecter ¶
type MockCommonDataProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCommonDataProvider_Expecter) EnrichEvent ¶
func (_e *MockCommonDataProvider_Expecter) EnrichEvent(event interface{}, resource interface{}) *MockCommonDataProvider_EnrichEvent_Call
EnrichEvent is a helper method to define mock.On call
- event *beat.Event
- resource fetching.ResourceMetadata
type MockElasticCommonDataProvider ¶
MockElasticCommonDataProvider is an autogenerated mock type for the ElasticCommonDataProvider type
func NewMockElasticCommonDataProvider ¶
func NewMockElasticCommonDataProvider(t interface { mock.TestingT Cleanup(func()) }) *MockElasticCommonDataProvider
NewMockElasticCommonDataProvider creates a new instance of MockElasticCommonDataProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockElasticCommonDataProvider) EXPECT ¶
func (_m *MockElasticCommonDataProvider) EXPECT() *MockElasticCommonDataProvider_Expecter
func (*MockElasticCommonDataProvider) GetElasticCommonData ¶
func (_m *MockElasticCommonDataProvider) GetElasticCommonData() (map[string]interface{}, error)
GetElasticCommonData provides a mock function with given fields:
type MockElasticCommonDataProvider_Expecter ¶
type MockElasticCommonDataProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockElasticCommonDataProvider_Expecter) GetElasticCommonData ¶
func (_e *MockElasticCommonDataProvider_Expecter) GetElasticCommonData() *MockElasticCommonDataProvider_GetElasticCommonData_Call
GetElasticCommonData is a helper method to define mock.On call
type MockElasticCommonDataProvider_GetElasticCommonData_Call ¶
MockElasticCommonDataProvider_GetElasticCommonData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetElasticCommonData'
func (*MockElasticCommonDataProvider_GetElasticCommonData_Call) Return ¶
func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) Return(_a0 map[string]interface{}, _a1 error) *MockElasticCommonDataProvider_GetElasticCommonData_Call
func (*MockElasticCommonDataProvider_GetElasticCommonData_Call) Run ¶
func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) Run(run func()) *MockElasticCommonDataProvider_GetElasticCommonData_Call
func (*MockElasticCommonDataProvider_GetElasticCommonData_Call) RunAndReturn ¶
func (_c *MockElasticCommonDataProvider_GetElasticCommonData_Call) RunAndReturn(run func() (map[string]interface{}, error)) *MockElasticCommonDataProvider_GetElasticCommonData_Call
type MockIdProvider ¶
MockIdProvider is an autogenerated mock type for the IdProvider type
func NewMockIdProvider ¶
func NewMockIdProvider(t interface { mock.TestingT Cleanup(func()) }) *MockIdProvider
NewMockIdProvider creates a new instance of MockIdProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockIdProvider) EXPECT ¶
func (_m *MockIdProvider) EXPECT() *MockIdProvider_Expecter
type MockIdProvider_Expecter ¶
type MockIdProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIdProvider_Expecter) GetId ¶
func (_e *MockIdProvider_Expecter) GetId(resourceType interface{}, resourceId interface{}) *MockIdProvider_GetId_Call
GetId is a helper method to define mock.On call
- resourceType string
- resourceId string
type MockIdProvider_GetId_Call ¶
MockIdProvider_GetId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetId'
func (*MockIdProvider_GetId_Call) Return ¶
func (_c *MockIdProvider_GetId_Call) Return(_a0 string) *MockIdProvider_GetId_Call
func (*MockIdProvider_GetId_Call) Run ¶
func (_c *MockIdProvider_GetId_Call) Run(run func(resourceType string, resourceId string)) *MockIdProvider_GetId_Call
func (*MockIdProvider_GetId_Call) RunAndReturn ¶
func (_c *MockIdProvider_GetId_Call) RunAndReturn(run func(string, string) string) *MockIdProvider_GetId_Call