2016-11-28 23:28:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package containerd.v1;
|
|
|
|
|
2016-12-01 20:36:19 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
2016-11-28 23:28:38 +00:00
|
|
|
service Registry {
|
2016-12-01 20:22:05 +00:00
|
|
|
// 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);
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PullRequest {
|
2016-12-01 20:22:05 +00:00
|
|
|
string uri = 1;
|
|
|
|
Authentication auth = 2;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PullResponse {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
repeated Layer layers = 2;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 20:36:19 +00:00
|
|
|
message PushRequest {}
|
|
|
|
message PushResponse {}
|
|
|
|
|
|
|
|
message StatusRequest {}
|
|
|
|
message StatusResponse {}
|
|
|
|
|
|
|
|
message DeleteRequest {}
|
|
|
|
message DeleteResponse {}
|
|
|
|
|
|
|
|
message CancelRequest{}
|
|
|
|
message CancelResponse{}
|
|
|
|
|
2016-11-28 23:28:38 +00:00
|
|
|
message Layer {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
uint64 size = 2;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: we have no clue what should go here, halp stevvooo
|
|
|
|
message Authentication {
|
2016-12-01 20:22:05 +00:00
|
|
|
string username = 1;
|
|
|
|
string password = 2;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|