When using events, it was found to be fairly unwieldy with a number of extra packages. For the most part, when interacting with the events service, we want types of the same version of the service. This has been accomplished by moving all events types into the events package. In addition, several fixes to the way events are marshaled have been included. Specifically, we defer to the protobuf type registration system to assemble events and type urls, with a little bit sheen on top of add a containerd.io oriented namespace. This has resulted in much cleaner event consumption and has removed the reliance on error prone type urls, in favor of concrete types. Signed-off-by: Stephen J Day <stephen.day@docker.com>
20 lines
337 B
Protocol Buffer
20 lines
337 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package containerd.services.events.v1;
|
|
|
|
option go_package = "github.com/containerd/containerd/api/services/events/v1;events";
|
|
|
|
message TaskCreate {
|
|
string container_id = 1;
|
|
}
|
|
|
|
message TaskStart {
|
|
string container_id = 1;
|
|
}
|
|
|
|
message TaskDelete {
|
|
string container_id = 1;
|
|
uint32 pid = 2;
|
|
uint32 exit_status = 3;
|
|
}
|