feat: 支持添加nutanix云账号

This commit is contained in:
liubo 2021-03-30 17:14:49 +08:00 committed by 老广
parent be176ad408
commit ee6a3c6d68
2 changed files with 11 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<script type="text/jsx">
import GenericListTable from '@/layout/components/GenericListTable'
import { ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, aws_china, aws_international, huaweicloud, qcloud, azure, azure_international, vmware } from '../const'
import { ACCOUNT_PROVIDER_ATTRS_MAP, aliyun, aws_china, aws_international, huaweicloud, qcloud, azure, azure_international, vmware, nutanix } from '../const'
import { BooleanFormatter, DetailFormatter } from '@/components/ListTable/formatters'
export default {
@ -109,6 +109,10 @@ export default {
{
name: vmware,
title: ACCOUNT_PROVIDER_ATTRS_MAP[vmware].title
},
{
name: nutanix,
title: ACCOUNT_PROVIDER_ATTRS_MAP[nutanix].title
}
]
}

View File

@ -8,6 +8,7 @@ export const qcloud = 'qcloud'
export const azure = 'azure'
export const azure_international = 'azure_international'
export const vmware = 'vmware'
export const nutanix = 'nutanix'
export const ACCOUNT_PROVIDER_ATTRS_MAP = {
[aliyun]: {
@ -49,5 +50,10 @@ export const ACCOUNT_PROVIDER_ATTRS_MAP = {
name: vmware,
title: 'VMware',
attrs: ['host', 'port', 'username', 'password']
},
[nutanix]: {
name: nutanix,
title: 'Nutanix',
attrs: ['access_key_id', 'access_key_secret', 'api_endpoint']
}
}