2017-11-06 19:53:54 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package generated;
|
|
|
|
|
|
|
|
import "Shared.proto";
|
|
|
|
|
|
|
|
message PutObjectRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string key = 3;
|
|
|
|
bytes body = 4;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
2018-06-29 17:54:44 +00:00
|
|
|
message ObjectExistsRequest {
|
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string key = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ObjectExistsResponse {
|
|
|
|
bool exists = 1;
|
|
|
|
}
|
|
|
|
|
2017-11-06 19:53:54 +00:00
|
|
|
message GetObjectRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string key = 3;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Bytes {
|
|
|
|
bytes data = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListCommonPrefixesRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string delimiter = 3;
|
2018-08-20 23:29:54 +00:00
|
|
|
string prefix = 4;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListCommonPrefixesResponse {
|
|
|
|
repeated string prefixes = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListObjectsRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string prefix = 3;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListObjectsResponse {
|
|
|
|
repeated string keys = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteObjectRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string key = 3;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message CreateSignedURLRequest {
|
2018-05-13 13:28:09 +00:00
|
|
|
string plugin = 1;
|
|
|
|
string bucket = 2;
|
|
|
|
string key = 3;
|
|
|
|
int64 ttl = 4;
|
2017-11-06 19:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSignedURLResponse {
|
|
|
|
string url = 1;
|
|
|
|
}
|
|
|
|
|
2019-04-09 17:50:05 +00:00
|
|
|
message ObjectStoreInitRequest {
|
|
|
|
string plugin = 1;
|
|
|
|
map<string, string> config = 2;
|
|
|
|
}
|
|
|
|
|
2017-11-06 19:53:54 +00:00
|
|
|
service ObjectStore {
|
2019-04-09 17:50:05 +00:00
|
|
|
rpc Init(ObjectStoreInitRequest) returns (Empty);
|
2017-11-06 19:53:54 +00:00
|
|
|
rpc PutObject(stream PutObjectRequest) returns (Empty);
|
2018-06-29 17:54:44 +00:00
|
|
|
rpc ObjectExists(ObjectExistsRequest) returns (ObjectExistsResponse);
|
2017-11-06 19:53:54 +00:00
|
|
|
rpc GetObject(GetObjectRequest) returns (stream Bytes);
|
|
|
|
rpc ListCommonPrefixes(ListCommonPrefixesRequest) returns (ListCommonPrefixesResponse);
|
|
|
|
rpc ListObjects(ListObjectsRequest) returns (ListObjectsResponse);
|
|
|
|
rpc DeleteObject(DeleteObjectRequest) returns (Empty);
|
|
|
|
rpc CreateSignedURL(CreateSignedURLRequest) returns (CreateSignedURLResponse);
|
|
|
|
}
|