api: generate protobufs using go generate
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
4d1a30ff41
commit
9f90fdbf07
6 changed files with 8868 additions and 0 deletions
6822
api/container/container.pb.go
Normal file
6822
api/container/container.pb.go
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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
3
api/container/gen.go
Normal 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
3
api/registry/gen.go
Normal 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
2024
api/registry/registry.pb.go
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue