优化结构
This commit is contained in:
@@ -10,24 +10,3 @@ func cloneAdminConfig(value *config.Admin) *config.Admin {
|
||||
}
|
||||
return config.CloneAdmin(value)
|
||||
}
|
||||
|
||||
func maskStorageSecrets(storage *config.Storage) {
|
||||
if storage == nil {
|
||||
return
|
||||
}
|
||||
if storage.Qiniu != nil && storage.Qiniu.SecretKey != "" {
|
||||
storage.Qiniu.SecretKey = "******"
|
||||
}
|
||||
for _, item := range []*config.ObjectStore{
|
||||
storage.AliyunOSS,
|
||||
storage.HuaweiOBS,
|
||||
storage.TencentCOS,
|
||||
storage.AWSS3,
|
||||
storage.CloudflareR2,
|
||||
storage.Minio,
|
||||
} {
|
||||
if item != nil && item.SecretKey != "" {
|
||||
item.SecretKey = "******"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user