Merge pull request #8903 from ioito/hotfix/qx-capability-account

fix(region): add instance capability info(default account)
This commit is contained in:
Zexi Li
2020-11-23 16:45:36 +08:00
committed by GitHub
18 changed files with 264 additions and 1 deletions
+32
View File
@@ -26,6 +26,38 @@ import (
"yunion.io/x/onecloud/pkg/util/seclib2"
)
type SDistDefaultAccount struct {
// 操作系统发行版
OsDistribution string
// 默认用户名
DefaultAccount string
// 是否可更改
Changeable bool
}
type SOsDefaultAccount struct {
// 默认用户名
DefaultAccount string
// 是否可更改用户名
Changeable bool
// 禁止使用的账号
DisabledAccounts []string
// 各操作系统发行版的默认用户名信息
DistAccounts []SDistDefaultAccount
}
type SDefaultAccount struct {
Linux SOsDefaultAccount
Windows SOsDefaultAccount
}
type SInstanceCapability struct {
Provider string
Hypervisor string
DefaultAccount SDefaultAccount
}
type SDiskInfo struct {
StorageExternalId string
StorageType string