Add protos for initial API
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
5f757c914c
commit
fc577a1cbb
2 changed files with 162 additions and 0 deletions
39
api/registry/registry.proto
Normal file
39
api/registry/registry.proto
Normal file
|
@ -0,0 +1,39 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package containerd.v1;
|
||||
|
||||
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;
|
||||
repeated Layer layers = 2;
|
||||
}
|
||||
|
||||
message Layer {
|
||||
string id = 1;
|
||||
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