2016-12-11 19:07:32 +00:00
|
|
|
package execution
|
|
|
|
|
2016-12-12 22:26:51 +00:00
|
|
|
import "time"
|
|
|
|
|
2017-02-06 16:46:37 +00:00
|
|
|
const (
|
|
|
|
ExitEvent = "exit"
|
|
|
|
OOMEvent = "oom"
|
|
|
|
CreateEvent = "create"
|
|
|
|
StartEvent = "start"
|
|
|
|
ExecEvent = "exec-added9"
|
|
|
|
)
|
2016-12-11 19:07:32 +00:00
|
|
|
|
2017-02-06 16:46:37 +00:00
|
|
|
type ContainerEvent struct {
|
|
|
|
Timestamp time.Time
|
|
|
|
ID string
|
|
|
|
Type string
|
|
|
|
Pid uint32
|
|
|
|
ExitStatus uint32
|
2016-12-11 19:07:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
)
|