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>
29 lines
569 B
Protocol Buffer
29 lines
569 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package containerd.services.events.v1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/containerd/containerd/api/services/events/v1;events";
|
|
|
|
message ContainerCreate {
|
|
string container_id = 1;
|
|
string image = 2;
|
|
message Runtime {
|
|
string name = 1;
|
|
map<string, string> options = 2;
|
|
}
|
|
Runtime runtime = 3;
|
|
}
|
|
|
|
message ContainerUpdate {
|
|
string container_id = 1;
|
|
string image = 2;
|
|
map<string, string> labels = 3;
|
|
string rootfs = 4 [(gogoproto.customname) = "RootFS"];
|
|
}
|
|
|
|
message ContainerDelete {
|
|
string container_id = 1;
|
|
}
|