aa5ff88bbc
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
24 lines
413 B
Go
24 lines
413 B
Go
package execution
|
|
|
|
import "time"
|
|
|
|
type ContainerEvent struct {
|
|
Timestamp time.Time
|
|
ID string
|
|
Action string
|
|
}
|
|
|
|
type ContainerExitEvent struct {
|
|
ContainerEvent
|
|
PID string
|
|
StatusCode uint32
|
|
}
|
|
|
|
const (
|
|
ContainersEventsSubjectSubscriber = "containerd.execution.container.>"
|
|
)
|
|
|
|
const (
|
|
containerEventsTopicFormat = "container.%s"
|
|
containerProcessEventsTopicFormat = "container.%s.%s"
|
|
)
|