1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-17 08:43:17 +00:00

Implement OpenStack Swift backend

This commit is contained in:
Gilbert Chen
2018-02-04 13:43:00 -05:00
parent 52fd553bb9
commit ddf61aee9d
3 changed files with 265 additions and 0 deletions

View File

@@ -138,6 +138,10 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
storage, err := CreateHubicStorage(config["token_file"], config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "memset" {
storage, err := CreateSwiftStorage(config["storage_url"], config["key"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else {
return nil, fmt.Errorf("Invalid storage named: %s", testStorageName)
}