From 713c035a6e5c71bbccdb0e1cc5856e1a84fbe122 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 Aug 2021 14:35:18 -0700 Subject: shell: remote.cache remote.uncache --- other/java/client/src/main/proto/filer.proto | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'other/java/client/src') 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; +} -- cgit v1.2.3