mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 04:33:06 +00:00
feat: 支持COS对象存储
This commit is contained in:
@@ -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')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,6 +45,10 @@ export default {
|
|||||||
{
|
{
|
||||||
name: 'obs',
|
name: 'obs',
|
||||||
title: 'OBS'
|
title: 'OBS'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'cos',
|
||||||
|
title: 'COS'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user