mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-10-21 21:44:05 +02:00
Update provider type from "drive" to "gdrive" across codebase for Google Drive storage
This commit is contained in:
1 parent
d9cb1cac03
commit
6e8fe9ad72
9 files changed
+34
-34
No files matched your search
@@ -13,7 +13,7 @@ const (
|
||||
ProviderTypeSFTP StorageProviderType = "sftp"
|
||||
ProviderTypeS3 StorageProviderType = "s3"
|
||||
ProviderTypeOneDrive StorageProviderType = "onedrive"
|
||||
ProviderTypeGoogleDrive StorageProviderType = "drive"
|
||||
ProviderTypeGoogleDrive StorageProviderType = "gdrive"
|
||||
ProviderTypeGooglePhoto StorageProviderType = "gphotos"
|
||||
ProviderTypeFTP StorageProviderType = "ftp"
|
||||
ProviderTypeSMB StorageProviderType = "smb"
|
||||
|
||||
@@ -465,7 +465,7 @@ func (db *DB) GenerateRcloneConfig(config *TransferConfig) error {
|
||||
if err := os.WriteFile(configPath, []byte(content), 0600); err != nil {
|
||||
return fmt.Errorf("failed to write source config (local): %v", err)
|
||||
}
|
||||
case "drive":
|
||||
case "gdrive":
|
||||
// For Google Drive, we need client ID and secret
|
||||
clientID := getStringValue(sourceCredentials, "client_id", config.SourceClientID)
|
||||
|
||||
@@ -1018,7 +1018,7 @@ func (db *DB) GenerateRcloneConfig(config *TransferConfig) error {
|
||||
if _, err := f.WriteString(content); err != nil {
|
||||
return fmt.Errorf("failed to write destination config (local): %v", err)
|
||||
}
|
||||
case "drive":
|
||||
case "gdrive":
|
||||
// For Google Drive, we need client ID and secret
|
||||
clientID := getStringValue(destCredentials, "client_id", config.DestClientID)
|
||||
|
||||
|
||||
Reference in new issue
Block a user