EventSink knows how to store events (client.Client implements it.) EventSink must respect the namespace that will be embedded in 'event'. It is assumed that EventSink will return the same sorts of errors as pkg/client's REST client.
| 45 | // It is assumed that EventSink will return the same sorts of errors as |
| 46 | // pkg/client's REST client. |
| 47 | type EventSink interface { |
| 48 | Create(event *v1.Event) (*v1.Event, error) |
| 49 | Update(event *v1.Event) (*v1.Event, error) |
| 50 | Patch(oldEvent *v1.Event, data []byte) (*v1.Event, error) |
| 51 | } |
| 52 | |
| 53 | // CorrelatorOptions allows you to change the default of the EventSourceObjectSpamFilter |
| 54 | // and EventAggregator in EventCorrelator |
nothing calls this directly
no outgoing calls
no test coverage detected