api: generate protobufs using `go generate`

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-01 12:36:19 -08:00
parent 4d1a30ff41
commit 9f90fdbf07
No known key found for this signature in database
GPG Key ID: FB5F6B2905D7ECF3
6 changed files with 8868 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@ syntax = "proto3";
package containerd.v1;
import "gogoproto/gogo.proto";
service Containers {
rpc Create(CreateRequest) returns (CreateResponse);
rpc Start(StartRequest) returns (StartResponse);

3
api/container/gen.go Normal file
View File

@ -0,0 +1,3 @@
package container
//go:generate protoc -I.:../../../../../github.com/gogo/protobuf --gogoswarm_out=plugins=grpc,import_path=github.com/docker/containerd/api/container,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. container.proto

3
api/registry/gen.go Normal file
View File

@ -0,0 +1,3 @@
package container
//go:generate protoc -I.:../../../../../github.com/gogo/protobuf --gogoswarm_out=plugins=grpc,import_path=github.com/docker/containerd/api/registry,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. registry.proto

2024
api/registry/registry.pb.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@ syntax = "proto3";
package containerd.v1;
import "gogoproto/gogo.proto";
service Registry {
// Pull an image from a registry
rpc Pull(PullRequest) returns (PullResponse);
@ -26,6 +28,18 @@ message PullResponse {
repeated Layer layers = 2;
}
message PushRequest {}
message PushResponse {}
message StatusRequest {}
message StatusResponse {}
message DeleteRequest {}
message DeleteResponse {}
message CancelRequest{}
message CancelResponse{}
message Layer {
string id = 1 [(gogoproto.customname) = "ID"];
uint64 size = 2;