1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-16 16:23:26 +00:00

Support GCD impersonation via modified service account file

This commit is contained in:
Gilbert Chen
2020-11-23 09:44:10 -05:00
parent 175adb14cb
commit 474f07e5cc
2 changed files with 29 additions and 4 deletions

View File

@@ -142,6 +142,10 @@ func loadStorage(localStoragePath string, threads int) (Storage, error) {
storage, err := CreateGCDStorage(config["token_file"], config["drive"], config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "gcd-impersonate" {
storage, err := CreateGCDStorage(config["token_file"], config["drive"], config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)
return storage, err
} else if testStorageName == "one" {
storage, err := CreateOneDriveStorage(config["token_file"], false, config["storage_path"], threads)
storage.SetDefaultNestingLevels([]int{2, 3}, 2)