MCPcopy
hub / github.com/kubernetes/client-go / EventSinkImpl

Struct EventSinkImpl

tools/events/event_broadcaster.go:72–74  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
72type EventSinkImpl struct {
73 Interface typedv1beta1.EventInterface
74}
75
76// Create is the same as CreateWithEventNamespace of the EventExpansion
77func (e *EventSinkImpl) Create(event *v1beta1.Event) (*v1beta1.Event, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected