mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 20:17:54 +00:00
feat: 支持COS对象存储
This commit is contained in:
@@ -6,6 +6,7 @@ export const SWIFT = 'swift'
|
||||
export const OSS = 'oss'
|
||||
export const AZURE = 'azure'
|
||||
export const OBS = 'obs'
|
||||
export const COS = 'cos'
|
||||
|
||||
export const STORAGE_TYPE_META_MAP = {
|
||||
[S3]: {
|
||||
@@ -26,7 +27,7 @@ export const STORAGE_TYPE_META_MAP = {
|
||||
},
|
||||
[OSS]: {
|
||||
name: OSS,
|
||||
title: 'Oss',
|
||||
title: 'OSS',
|
||||
meta: ['BUCKET', 'ACCESS_KEY', 'SECRET_KEY', 'ENDPOINT'],
|
||||
endpointHelpText: i18n.t('sessions.helpText.ossEndpoint')
|
||||
},
|
||||
@@ -39,5 +40,11 @@ export const STORAGE_TYPE_META_MAP = {
|
||||
name: OBS,
|
||||
title: 'OBS',
|
||||
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')
|
||||
}
|
||||
}
|
||||
|
@@ -45,6 +45,10 @@ export default {
|
||||
{
|
||||
name: 'obs',
|
||||
title: 'OBS'
|
||||
},
|
||||
{
|
||||
name: 'cos',
|
||||
title: 'COS'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user