To avoid importing all of grpc when consuming events, the types of events have been split in to a separate package. This should allow a reduction in memory usage in cases where a package is consuming events but not using the gprc service directly. Signed-off-by: Stephen J Day <stephen.day@docker.com>
23 lines
454 B
Protocol Buffer
23 lines
454 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package containerd.services.images.v1;
|
|
|
|
import "github.com/containerd/containerd/protobuf/plugin/fieldpath.proto";
|
|
|
|
option go_package = "github.com/containerd/containerd/api/events;events";
|
|
option (containerd.plugin.fieldpath_all) = true;
|
|
|
|
message ImageCreate {
|
|
string name = 1;
|
|
map<string, string> labels = 2;
|
|
}
|
|
|
|
message ImageUpdate {
|
|
string name = 1;
|
|
map<string, string> labels = 2;
|
|
}
|
|
|
|
message ImageDelete {
|
|
string name = 1;
|
|
}
|