1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-20 02:03:32 +00:00

Merge pull request #612 from gilbertchen/gcd_impersonate

Support GCD impersonation via modified service account file
This commit is contained in:
gilbertchen
2021-03-09 10:24:08 -05:00
committed by GitHub
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)