1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-24 04:04:18 +00:00

Add a s3c backend to support s3 compatible storages that require V2 Signing

This commit is contained in:
Gilbert Chen
2017-07-11 21:27:20 -04:00
parent c2120ad3d5
commit f8d879d414
3 changed files with 230 additions and 7 deletions

View File

@@ -66,6 +66,8 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
return CreateSFTPStorageWithPassword(storage["server"], port, storage["username"], storage["directory"], storage["password"], threads)
} else if testStorageName == "s3" {
return CreateS3Storage(storage["region"], storage["endpoint"], storage["bucket"], storage["directory"], storage["access_key"], storage["secret_key"], threads, false)
} else if testStorageName == "s3c" {
return CreateS3CStorage(storage["region"], storage["endpoint"], storage["bucket"], storage["directory"], storage["access_key"], storage["secret_key"], threads)
} else if testStorageName == "minio" {
return CreateS3Storage(storage["region"], storage["endpoint"], storage["bucket"], storage["directory"], storage["access_key"], storage["secret_key"], threads, true)
} else if testStorageName == "dropbox" {