Documentation ¶
Overview ¶
type EventHandler interface { OnAdd(event corev1.Event) OnUpdate(old, new corev1.Event) OnDelete(event corev1.Event) }
Index ¶
- type ElasticsearchSink
- func (e *ElasticsearchSink) CreateIndex(name string) error
- func (e *ElasticsearchSink) Index(date time.Time) string
- func (e *ElasticsearchSink) OnAdd(event *corev1.Event)
- func (e *ElasticsearchSink) OnDelete(event *corev1.Event)
- func (e *ElasticsearchSink) OnUpdate(old, new *corev1.Event)
- func (e *ElasticsearchSink) Run(stopCh <-chan struct{})
- type FileSink
- type Sink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElasticsearchSink ¶
type ElasticsearchSink struct {
// contains filtered or unexported fields
}
func (*ElasticsearchSink) CreateIndex ¶
func (e *ElasticsearchSink) CreateIndex(name string) error
func (*ElasticsearchSink) OnAdd ¶
func (e *ElasticsearchSink) OnAdd(event *corev1.Event)
func (*ElasticsearchSink) OnDelete ¶
func (e *ElasticsearchSink) OnDelete(event *corev1.Event)
func (*ElasticsearchSink) OnUpdate ¶
func (e *ElasticsearchSink) OnUpdate(old, new *corev1.Event)
func (*ElasticsearchSink) Run ¶
func (e *ElasticsearchSink) Run(stopCh <-chan struct{})
type Sink ¶
type Sink interface { events.EventHandler Run(stopCh <-chan struct{}) }
Click to show internal directories.
Click to hide internal directories.