Space.Upload (#313)

This commit is contained in:
Dominic Wong
2021-12-10 15:26:50 +00:00
committed by GitHub
parent 156042c6ea
commit f022c62a87
7 changed files with 355 additions and 149 deletions

View File

@@ -12,6 +12,7 @@ service Space {
rpc Head(HeadRequest) returns (HeadResponse) {}
rpc Read(ReadRequest) returns (ReadResponse) {}
rpc Download(DownloadRequest) returns (DownloadResponse) {}
rpc Upload(UploadRequest) returns (UploadResponse) {}
}
// Create an object. Returns error if object with this name already exists. If you want to update an existing object use the `Update` endpoint
@@ -134,3 +135,15 @@ message DownloadResponse {
// presigned url
string url = 2;
}
// Upload a large object. Returns a time limited presigned URL to be used for uploading the object
message UploadRequest {
string name = 1;
// is this object public or private
string visibility = 2;
}
message UploadResponse {
// a presigned url to be used for uploading
string url = 1;
}