aboutsummaryrefslogtreecommitdiff
path: root/other/java/client/src/main/proto
diff options
context:
space:
mode:
Diffstat (limited to 'other/java/client/src/main/proto')
-rw-r--r--other/java/client/src/main/proto/filer.proto18
1 files changed, 14 insertions, 4 deletions
diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto
index 1a5cfe79b..c9257ddca 100644
--- a/other/java/client/src/main/proto/filer.proto
+++ b/other/java/client/src/main/proto/filer.proto
@@ -67,6 +67,8 @@ service SeaweedFiler {
rpc KvPut (KvPutRequest) returns (KvPutResponse) {
}
+ rpc DownloadToLocal (DownloadToLocalRequest) returns (DownloadToLocalResponse) {
+ }
}
//////////////////////////////////////////////////
@@ -93,10 +95,11 @@ message ListEntriesResponse {
}
message RemoteEntry {
- int64 last_modified_at = 1;
- int64 size = 2;
- string e_tag = 3;
- string storage_name = 4;
+ string storage_name = 1;
+ int64 local_mtime = 2;
+ string remote_e_tag = 3;
+ int64 remote_mtime = 4;
+ int64 remote_size = 5;
}
message Entry {
string name = 1;
@@ -400,3 +403,10 @@ message RemoteStorageLocation {
string bucket = 2;
string path = 3;
}
+message DownloadToLocalRequest {
+ string directory = 1;
+ string name = 2;
+}
+message DownloadToLocalResponse {
+ Entry entry = 1;
+}