EventSinkImpl wraps EventInterface to implement EventSink. TODO: this makes it easier for testing purpose and masks the logic of performing API calls. Note that rollbacking to raw clientset should also be transparent.
| 70 | // TODO: this makes it easier for testing purpose and masks the logic of performing API calls. |
| 71 | // Note that rollbacking to raw clientset should also be transparent. |
| 72 | type EventSinkImpl struct { |
| 73 | Interface typedv1beta1.EventInterface |
| 74 | } |
| 75 | |
| 76 | // Create is the same as CreateWithEventNamespace of the EventExpansion |
| 77 | func (e *EventSinkImpl) Create(event *v1beta1.Event) (*v1beta1.Event, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected