Skip to content

Type Alias: ContainerdEvent ​

ContainerdEvent = object

An event of containerd, as Containerd.events streams it: its topic (/tasks/exit), its type (containerd.events.TaskExit) and its decoded fields.

Properties ​

event ​

event: Message

The event's fields, decoded for the task, container, image and snapshot events ({containerId, pid, exitStatus, exitedAt} for /tasks/exit, {name} for /images/delete); an empty object for the other events.


namespace ​

namespace: string

The namespace the event happened in (the component's).


timestamp ​

timestamp: Date

When containerd published the event.


topic ​

topic: string

The event's topic: /tasks/create, /tasks/start, /tasks/exit, /tasks/delete, /tasks/oom, /tasks/paused, /tasks/resumed, /tasks/exec-added, /tasks/exec-started, /containers/create, /containers/update, /containers/delete, /images/create, /images/update, /images/delete, /snapshot/prepare, /snapshot/commit, /snapshot/remove…


type ​

type: string

The type of the event's payload (containerd.events.TaskExit).

Released under the MIT License.