2016-12-11 19:07:32 +00:00
|
|
|
package execution
|
|
|
|
|
2016-12-12 22:26:51 +00:00
|
|
|
import "time"
|
|
|
|
|
2016-12-11 19:07:32 +00:00
|
|
|
type ContainerEvent struct {
|
2016-12-12 22:26:51 +00:00
|
|
|
Timestamp time.Time
|
|
|
|
ID string
|
|
|
|
Action string
|
2016-12-11 19:07:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ContainerExitEvent struct {
|
|
|
|
ContainerEvent
|
|
|
|
PID string
|
|
|
|
StatusCode uint32
|
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
ContainersEventsSubjectSubscriber = "containerd.execution.container.>"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2016-12-12 22:26:51 +00:00
|
|
|
containerEventsTopicFormat = "container.%s"
|
|
|
|
containerProcessEventsTopicFormat = "container.%s.%s"
|
2016-12-11 19:07:32 +00:00
|
|
|
)
|