Documentation ¶
Index ¶
Constants ¶
View Source
const EventsManagerServiceLocalID = "container-management.service.local.v1.service-events-manager"
EventsManagerServiceLocalID represents the ID of the local events manager service
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerEventsManager ¶
type ContainerEventsManager interface { // Publish adds a new event to be dispatched based on the provided EventType and EventAction Publish(ctx context.Context, eventType types.EventType, eventAction types.EventAction, source *types.Container) error // Subscribe provides two channels where the according events and errors can be received via the subscriber context provided Subscribe(ctx context.Context) (<-chan *types.Event, <-chan error) }
ContainerEventsManager provies a simple way of publishing and subscribing to container related events.
Click to show internal directories.
Click to hide internal directories.