feat: 支持COS对象存储

This commit is contained in:
Jiangjie.Bai
2022-02-28 18:07:11 +08:00
committed by huailei
parent 4366e5b1c8
commit 263e7a0f34
2 changed files with 12 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export const SWIFT = 'swift'
export const OSS = 'oss' export const OSS = 'oss'
export const AZURE = 'azure' export const AZURE = 'azure'
export const OBS = 'obs' export const OBS = 'obs'
export const COS = 'cos'
export const STORAGE_TYPE_META_MAP = { export const STORAGE_TYPE_META_MAP = {
[S3]: { [S3]: {
@@ -26,7 +27,7 @@ export const STORAGE_TYPE_META_MAP = {
}, },
[OSS]: { [OSS]: {
name: OSS, name: OSS,
title: 'Oss', title: 'OSS',
meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT'], meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT'],
endpointHelpText: i18n.t('sessions.helpText.ossEndpoint') endpointHelpText: i18n.t('sessions.helpText.ossEndpoint')
}, },
@@ -39,5 +40,11 @@ export const STORAGE_TYPE_META_MAP = {
name: OBS, name: OBS,
title: 'OBS', title: 'OBS',
meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT'] meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT']
},
[COS]: {
name: COS,
title: 'COS',
meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT'],
endpointHelpText: i18n.t('sessions.helpText.s3Endpoint')
} }
} }

View File

@@ -45,6 +45,10 @@ export default {
{ {
name: 'obs', name: 'obs',
title: 'OBS' title: 'OBS'
},
{
name: 'cos',
title: 'COS'
} }
] ]
} }