UpdateEvent records the event for testing.
(e *v1.Event)
| 52 | |
| 53 | // UpdateEvent records the event for testing. |
| 54 | func (t *testEventSink) Update(e *v1.Event) (*v1.Event, error) { |
| 55 | if t.OnUpdate != nil { |
| 56 | return t.OnUpdate(e) |
| 57 | } |
| 58 | return e, nil |
| 59 | } |
| 60 | |
| 61 | // PatchEvent records the event for testing. |
| 62 | func (t *testEventSink) Patch(e *v1.Event, p []byte) (*v1.Event, error) { |