mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 06:25:07 +00:00
Space.Upload (#313)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user