"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Move dircache, oauthutil, rest and pacer modules into lib
Nick Craig-Wood60afda007b3c
diff --git a/backend/amazonclouddrive/amazonclouddrive.go b/backend/amazonclouddrive/amazonclouddrive.goindex af1cf16bc..ccb4a9aaf 100644--- a/backend/amazonclouddrive/amazonclouddrive.go+++ b/backend/amazonclouddrive/amazonclouddrive.go@@ -23,11 +23,11 @@ import ("time""github.com/ncw/go-acd"- "github.com/ncw/rclone/dircache""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/dircache"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex 166b9f57b..b294eea3a 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -23,7 +23,7 @@ import ("github.com/Azure/azure-sdk-for-go/storage""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/pacer"+ "github.com/ncw/rclone/lib/pacer""github.com/pkg/errors")diff --git a/backend/b2/b2.go b/backend/b2/b2.goindex 926e17a42..1648c51d5 100644--- a/backend/b2/b2.go+++ b/backend/b2/b2.go@@ -21,8 +21,8 @@ import ("github.com/ncw/rclone/backend/b2/api""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors")diff --git a/backend/b2/upload.go b/backend/b2/upload.goindex 3519de727..f7d6234fc 100644--- a/backend/b2/upload.go+++ b/backend/b2/upload.go@@ -16,7 +16,7 @@ import ("github.com/ncw/rclone/backend/b2/api""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors")diff --git a/backend/box/box.go b/backend/box/box.goindex 7673a45ae..2ca6e35a2 100644--- a/backend/box/box.go+++ b/backend/box/box.go@@ -22,11 +22,11 @@ import ("time""github.com/ncw/rclone/backend/box/api"- "github.com/ncw/rclone/dircache""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/dircache"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/backend/box/upload.go b/backend/box/upload.goindex 66d8454d7..49771978d 100644--- a/backend/box/upload.go+++ b/backend/box/upload.go@@ -16,7 +16,7 @@ import ("github.com/ncw/rclone/backend/box/api""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors")diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 3adb2a73a..08f7ddeb3 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -20,10 +20,10 @@ import ("strings""time"- "github.com/ncw/rclone/dircache""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"+ "github.com/ncw/rclone/lib/dircache"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer""github.com/pkg/errors""github.com/spf13/pflag""golang.org/x/oauth2"diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.goindex 3b659c317..ab4623b27 100644--- a/backend/dropbox/dropbox.go+++ b/backend/dropbox/dropbox.go@@ -34,8 +34,8 @@ import ("github.com/dropbox/dropbox-sdk-go-unofficial/dropbox""github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.goindex b326f2c29..57a0a0bef 100644--- a/backend/googlecloudstorage/googlecloudstorage.go+++ b/backend/googlecloudstorage/googlecloudstorage.go@@ -28,7 +28,7 @@ import ("time""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"+ "github.com/ncw/rclone/lib/oauthutil""github.com/pkg/errors""golang.org/x/oauth2""golang.org/x/oauth2/google"diff --git a/backend/http/http.go b/backend/http/http.goindex 3cf590125..5d2c888fb 100644--- a/backend/http/http.go+++ b/backend/http/http.go@@ -17,7 +17,7 @@ import ("time""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors""golang.org/x/net/html")diff --git a/backend/http/http_internal_test.go b/backend/http/http_internal_test.goindex 80b28d5d3..72f014127 100644--- a/backend/http/http_internal_test.go+++ b/backend/http/http_internal_test.go@@ -16,7 +16,7 @@ import ("github.com/ncw/rclone/fs""github.com/ncw/rclone/fstest"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/stretchr/testify/assert""github.com/stretchr/testify/require")diff --git a/backend/hubic/hubic.go b/backend/hubic/hubic.goindex 4a45fca65..26e4fb31e 100644--- a/backend/hubic/hubic.go+++ b/backend/hubic/hubic.go@@ -15,7 +15,7 @@ import ("github.com/ncw/rclone/backend/swift""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"+ "github.com/ncw/rclone/lib/oauthutil"swiftLib "github.com/ncw/swift""github.com/pkg/errors""golang.org/x/oauth2"diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 9f21fa163..52cd11923 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -15,11 +15,11 @@ import ("time""github.com/ncw/rclone/backend/onedrive/api"- "github.com/ncw/rclone/dircache""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/dircache"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/backend/pcloud/pcloud.go b/backend/pcloud/pcloud.goindex c0c1dd8c4..1128b4f83 100644--- a/backend/pcloud/pcloud.go+++ b/backend/pcloud/pcloud.go@@ -22,11 +22,11 @@ import ("time""github.com/ncw/rclone/backend/pcloud/api"- "github.com/ncw/rclone/dircache""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/dircache"+ "github.com/ncw/rclone/lib/oauthutil"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 8fcea2106..72ff06cc8 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -37,7 +37,7 @@ import ("github.com/aws/aws-sdk-go/service/s3""github.com/aws/aws-sdk-go/service/s3/s3manager""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/ncw/swift""github.com/pkg/errors")diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.goindex 709510993..cf837014b 100644--- a/backend/webdav/webdav.go+++ b/backend/webdav/webdav.go@@ -30,8 +30,8 @@ import ("github.com/ncw/rclone/backend/webdav/api""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/pacer"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/pacer"+ "github.com/ncw/rclone/lib/rest""github.com/pkg/errors")diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.goindex 181f9aeb4..75a3c2519 100644--- a/backend/yandex/yandex.go+++ b/backend/yandex/yandex.go@@ -15,7 +15,7 @@ import (yandex "github.com/ncw/rclone/backend/yandex/api""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/oauthutil"+ "github.com/ncw/rclone/lib/oauthutil""github.com/pkg/errors""golang.org/x/oauth2")diff --git a/cmd/serve/http/http.go b/cmd/serve/http/http.goindex ca7c76673..3c4b79284 100644--- a/cmd/serve/http/http.go+++ b/cmd/serve/http/http.go@@ -11,7 +11,7 @@ import ("github.com/ncw/rclone/cmd""github.com/ncw/rclone/fs"- "github.com/ncw/rclone/rest"+ "github.com/ncw/rclone/lib/rest""github.com/ncw/rclone/vfs""github.com/ncw/rclone/vfs/vfsflags""github.com/spf13/cobra"diff --git a/dircache/dircache.go b/lib/dircache/dircache.gosimilarity index 100%rename from dircache/dircache.gorename to lib/dircache/dircache.godiff --git a/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.gosimilarity index 100%rename from oauthutil/oauthutil.gorename to lib/oauthutil/oauthutil.godiff --git a/oauthutil/oauthutil_new.go b/lib/oauthutil/oauthutil_new.gosimilarity index 100%rename from oauthutil/oauthutil_new.gorename to lib/oauthutil/oauthutil_new.godiff --git a/oauthutil/oauthutil_old.go b/lib/oauthutil/oauthutil_old.gosimilarity index 100%rename from oauthutil/oauthutil_old.gorename to lib/oauthutil/oauthutil_old.godiff --git a/oauthutil/renew.go b/lib/oauthutil/renew.gosimilarity index 100%rename from oauthutil/renew.gorename to lib/oauthutil/renew.godiff --git a/pacer/pacer.go b/lib/pacer/pacer.gosimilarity index 100%rename from pacer/pacer.gorename to lib/pacer/pacer.godiff --git a/pacer/pacer_test.go b/lib/pacer/pacer_test.gosimilarity index 100%rename from pacer/pacer_test.gorename to lib/pacer/pacer_test.godiff --git a/pacer/tokens.go b/lib/pacer/tokens.gosimilarity index 100%rename from pacer/tokens.gorename to lib/pacer/tokens.godiff --git a/pacer/tokens_test.go b/lib/pacer/tokens_test.gosimilarity index 100%rename from pacer/tokens_test.gorename to lib/pacer/tokens_test.godiff --git a/rest/rest.go b/lib/rest/rest.gosimilarity index 100%rename from rest/rest.gorename to lib/rest/rest.godiff --git a/rest/url.go b/lib/rest/url.gosimilarity index 100%rename from rest/url.gorename to lib/rest/url.godiff --git a/rest/url_test.go b/lib/rest/url_test.gosimilarity index 100%rename from rest/url_test.gorename to lib/rest/url_test.go