2ef399b315
The implementation relies on nats.io Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
21 lines
417 B
Go
21 lines
417 B
Go
package execution
|
|
|
|
type ContainerEvent struct {
|
|
ID string
|
|
Action string
|
|
}
|
|
|
|
type ContainerExitEvent struct {
|
|
ContainerEvent
|
|
PID string
|
|
StatusCode uint32
|
|
}
|
|
|
|
const (
|
|
ContainersEventsSubjectSubscriber = "containerd.execution.container.>"
|
|
)
|
|
|
|
const (
|
|
containerEventsSubjectFormat = "containerd.execution.container.%s"
|
|
containerProcessEventsSubjectFormat = "containerd.execution.container.%s.%s"
|
|
)
|