api: protos now pass lint checks

Generation is likely broken, but the Makefile linter now passes. Another
pass will have a fully working toolchain.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-01 12:22:05 -08:00
parent 2507ee35bb
commit 4d1a30ff41
No known key found for this signature in database
GPG key ID: FB5F6B2905D7ECF3
3 changed files with 87 additions and 87 deletions

View file

@ -3,37 +3,37 @@ 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);
// 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);
// 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;
string uri = 1;
Authentication auth = 2;
}
message PullResponse {
string id = 1;
repeated Layer layers = 2;
string id = 1 [(gogoproto.customname) = "ID"];
repeated Layer layers = 2;
}
message Layer {
string id = 1;
uint64 size = 2;
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;
string username = 1;
string password = 2;
}