"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 region parameter - fixes #38
Nick Craig-Woodc47c9cd4405f
diff --git a/swift/swift.go b/swift/swift.goindex d93cb68f5..4dfd95ce1 100644--- a/swift/swift.go+++ b/swift/swift.go@@ -47,6 +47,9 @@ func init() {}, {Name: "tenant",Help: "Tenant name - optional",+ }, {+ Name: "region",+ Help: "Region name - optional",},// snet = flag.Bool("swift-snet", false, "Use internal service network") // FIXME not implemented},@@ -115,6 +118,7 @@ func swiftConnection(name string) (*swift.Connection, error) {AuthUrl: authUrl,UserAgent: fs.UserAgent,Tenant: fs.ConfigFile.MustValue(name, "tenant"),+ Region: fs.ConfigFile.MustValue(name, "region"),}err := c.Authenticate()if err != nil {