2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00

feat: 重写s3客户端

This commit is contained in:
2026-01-24 22:41:03 +08:00
parent 92425e99cc
commit c1b7a9fbd1
7 changed files with 103 additions and 167 deletions

View File

@@ -405,6 +405,7 @@ func (r *backupRepo) getStorage(backupStorage biz.BackupStorage) (storage.Storag
AccessKeyID: backupStorage.Info.AccessKey,
SecretAccessKey: backupStorage.Info.SecretKey,
Endpoint: backupStorage.Info.Endpoint,
Scheme: backupStorage.Info.Scheme,
BasePath: backupStorage.Info.Path,
AddressingStyle: storage.S3AddressingStyle(backupStorage.Info.Style),
})

View File

@@ -129,6 +129,7 @@ func (s *BackupStorageService) validateStorage(accountType string, info types.Ba
AccessKeyID: info.AccessKey,
SecretAccessKey: info.SecretKey,
Endpoint: info.Endpoint,
Scheme: info.Scheme,
BasePath: info.Path,
AddressingStyle: storage.S3AddressingStyle(info.Style),
})