
Because of a side-effect import, we have the possibility of pulling in several unnecessary packages that are used by the plugin and not at runtime to implement protobuf structures. Setting these imports to `weak` prevents this from happening, reducing the total import set, reducing memory usage and binary size. Signed-off-by: Stephen J Day <stephen.day@docker.com>
16 lines
402 B
Protocol Buffer
16 lines
402 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package containerd.types;
|
|
|
|
import weak "gogoproto/gogo.proto";
|
|
import "google/protobuf/any.proto";
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/containerd/containerd/api/types;types";
|
|
|
|
message Metric {
|
|
google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
string id = 2;
|
|
google.protobuf.Any data = 3;
|
|
}
|