remote make bucket

Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-08-27 16:43:12 +08:00
parent 0a373bc260
commit 78f3944b5d
15 changed files with 206 additions and 27 deletions
+15
View File
@@ -12,8 +12,23 @@ message PingResponse {
bytes body = 2;
}
message MakeBucketOptions {
bool force_create = 1;
}
message MakeBucketRequest {
string name = 1;
MakeBucketOptions options = 2;
}
message MakeBucketResponse {
bool success = 1;
optional string error_info = 2;
}
/* -------------------------------------------------------------------- */
service NodeService {
rpc Ping(PingRequest) returns (PingResponse) {};
rpc MakeBucket(MakeBucketRequest) returns (MakeBucketResponse) {};
}