mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
37 lines
890 B
Protocol Buffer
37 lines
890 B
Protocol Buffer
// Copyright (c) 2020 TypeFox GmbH. All rights reserved.
|
|
// Licensed under the GNU Affero General Public License (AGPL).
|
|
// See License-AGPL.txt in the project root for license information.
|
|
|
|
syntax = "proto3";
|
|
|
|
package contentservice;
|
|
|
|
option go_package = "github.com/gitpod-io/gitpod/content-service/api";
|
|
|
|
service BlobService {
|
|
// UploadUrl provides a URL to which clients can upload the content via HTTP PUT.
|
|
rpc UploadUrl(UploadUrlRequest) returns (UploadUrlResponse) {}
|
|
|
|
// DownloadUrl provides a URL from which clients cat download the content via HTTP GET.
|
|
rpc DownloadUrl(DownloadUrlRequest) returns (DownloadUrlResponse) {}
|
|
}
|
|
|
|
message UploadUrlRequest {
|
|
string owner_id = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message UploadUrlResponse {
|
|
string url = 1;
|
|
}
|
|
|
|
|
|
message DownloadUrlRequest {
|
|
string owner_id = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message DownloadUrlResponse {
|
|
string url = 1;
|
|
}
|