"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
swift: add auth version parameter - fixes #407
Nick Craig-Wood1fce83b9369e
diff --git a/docs/content/swift.md b/docs/content/swift.mdindex 113078544..cb9fcbde4 100644--- a/docs/content/swift.md+++ b/docs/content/swift.md@@ -81,6 +81,8 @@ region>Storage URL - optionalstorage_url>Remote config+AuthVersion - optional - set to (1,2,3) if your auth URL has no version+auth_version>--------------------[remote]user = user_namediff --git a/swift/swift.go b/swift/swift.goindex e652eef2c..bebb7d00a 100644--- a/swift/swift.go+++ b/swift/swift.go@@ -73,6 +73,9 @@ func init() {}, {Name: "storage_url",Help: "Storage URL - optional",+ }, {+ Name: "auth_version",+ Help: "AuthVersion - optional - set to (1,2,3) if your auth URL has no version",},},})@@ -155,6 +158,7 @@ func swiftConnection(name string) (*swift.Connection, error) {UserName: userName,ApiKey: apiKey,AuthUrl: authURL,+ AuthVersion: fs.ConfigFile.MustInt(name, "auth_version", 0),UserAgent: fs.UserAgent,Tenant: fs.ConfigFile.MustValue(name, "tenant"),Region: fs.ConfigFile.MustValue(name, "region"),