events

package
v0.1.0-M4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: Apache-2.0, EPL-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL