From 24858507cca1429bb499c2bdb13236f9ef98d599 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 30 Oct 2021 19:27:25 -0700 Subject: rename API to avoid confusion --- weed/shell/command_remote_cache.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'weed/shell/command_remote_cache.go') diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go index 2ae20d143..20a42dd3b 100644 --- a/weed/shell/command_remote_cache.go +++ b/weed/shell/command_remote_cache.go @@ -163,10 +163,10 @@ func (c *commandRemoteCache) cacheContentData(commandEnv *CommandEnv, writer io. remoteLocation := filer.MapFullPathToRemoteStorageLocation(localMountedDir, remoteMountedLocation, dir.Child(entry.Name)) - if err := filer.DownloadToLocal(commandEnv, remoteConf, remoteLocation, dir, entry); err != nil { - fmt.Fprintf(writer, "DownloadToLocal %+v: %v\n", remoteLocation, err) + if err := filer.CacheRemoteObjectToLocalCluster(commandEnv, remoteConf, remoteLocation, dir, entry); err != nil { + fmt.Fprintf(writer, "CacheRemoteObjectToLocalCluster %+v: %v\n", remoteLocation, err) if executionErr == nil { - executionErr = fmt.Errorf("DownloadToLocal %+v: %v\n", remoteLocation, err) + executionErr = fmt.Errorf("CacheRemoteObjectToLocalCluster %+v: %v\n", remoteLocation, err) } return } -- cgit v1.2.3 From a8b0f8864d4870d59e4e098d33997f416af8c6ba Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 7 Nov 2021 12:38:35 -0800 Subject: fix help message --- weed/shell/command_remote_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weed/shell/command_remote_cache.go') diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go index 20a42dd3b..2bd8d4eda 100644 --- a/weed/shell/command_remote_cache.go +++ b/weed/shell/command_remote_cache.go @@ -26,7 +26,7 @@ func (c *commandRemoteCache) Help() string { return `cache the file content for mounted directories or files # assume a remote storage is configured to name "cloud1" - remote.configure -name=cloud1 -type=s3 -access_key=xxx -secret_key=yyy + remote.configure -name=cloud1 -type=s3 -s3.access_key=xxx -s3.secret_key=yyy # mount and pull one bucket remote.mount -dir=/xxx -remote=cloud1/bucket -- cgit v1.2.3