Documentation ¶
Overview ¶
Package event contains spate events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // ID of the event. ID string // Type of the event. Type Type // Service relevant to the event. Service swarm.Service }
Event represents some incident.
type Type ¶
type Type string
Type represents some category of events.
const ( // TypeServiceCreated indicates a service creation event. TypeServiceCreated Type = "service_created" // TypeServiceUpdated indicates a service update event. TypeServiceUpdated Type = "service_updated" // TypeServiceDeleted indicates a service deletion event. TypeServiceDeleted Type = "service_deleted" // TypeServiceScaledUp indicates a service scale up event. TypeServiceScaledUp Type = "service_scaled_up" // TypeServiceScaledDown indicates a service scale down event. TypeServiceScaledDown Type = "service_scaled_down" )
Click to show internal directories.
Click to hide internal directories.