
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>
19 lines
445 B
Protocol Buffer
19 lines
445 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package containerd.services.version.v1;
|
|
|
|
import "google/protobuf/empty.proto";
|
|
import weak "gogoproto/gogo.proto";
|
|
|
|
// TODO(stevvooe): Should version service actually be versioned?
|
|
option go_package = "github.com/containerd/containerd/api/services/version/v1;version";
|
|
|
|
service Version {
|
|
rpc Version(google.protobuf.Empty) returns (VersionResponse);
|
|
}
|
|
|
|
message VersionResponse {
|
|
string version = 1;
|
|
string revision = 2;
|
|
}
|