Revert "proto: move all protos under a single root"
This reverts commit 352c6b590c
.
This commit is contained in:
parent
352c6b590c
commit
ef03000b27
7 changed files with 531 additions and 536 deletions
3
api/registry/gen.go
Normal file
3
api/registry/gen.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
package registry
|
||||
|
||||
//go:generate protoc -I.:../../../../../github.com/gogo/protobuf --gogoctrd_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
|
2058
api/registry/registry.pb.go
Normal file
2058
api/registry/registry.pb.go
Normal file
File diff suppressed because it is too large
Load diff
53
api/registry/registry.proto
Normal file
53
api/registry/registry.proto
Normal file
|
@ -0,0 +1,53 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package containerd.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
service Registry {
|
||||
// Pull an image from a registry
|
||||
rpc Pull(PullRequest) returns (PullResponse);
|
||||
// Push pushes a new or existing image to a registry
|
||||
rpc Push(PushRequest) returns (PushResponse);
|
||||
// Delete deletes an image from the registry
|
||||
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
||||
|
||||
// Status returns a progress stream of the push or pull operation
|
||||
rpc Status(StatusRequest) returns (stream StatusResponse);
|
||||
// Cancel cancels a push or pull operation
|
||||
rpc Cancel(CancelRequest) returns (CancelResponse);
|
||||
}
|
||||
|
||||
message PullRequest {
|
||||
string uri = 1;
|
||||
Authentication auth = 2;
|
||||
}
|
||||
|
||||
message PullResponse {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
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;
|
||||
}
|
||||
|
||||
// TODO: we have no clue what should go here, halp stevvooo
|
||||
message Authentication {
|
||||
string username = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue