Documentation
¶
Overview ¶
Package events is the engine's event bus: what happened to containers, images and volumes, as GET /events streams it (Docker's EventMessage: Type, Action, Actor{ID, Attributes}, time). The bus keeps a bounded history for `since` and gives each subscriber a bounded queue; a subscriber that falls that far behind is cut off (its channel closed, Lost set) rather than slowing the engine down.
Index ¶
Constants ¶
View Source
const ( Container = "container" Image = "image" Volume = "volume" )
Types of objects that emit events.
View Source
const ( // History is how many past events the bus keeps for `since`. History = 1024 // Queue is how many events a subscriber may be behind. Queue = 256 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus fans events out. The zero value is not usable; use New.
Click to show internal directories.
Click to hide internal directories.