Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultBaremetalProfileId = "default"
)
Variables ¶
View Source
var PredefinedProfiles = []BaremetalProfileSpec{ { OemName: "", LanChannels: []uint8{1, 2, 8}, RootName: "root", RootId: 2, }, { OemName: types.OEM_NAME_INSPUR, LanChannels: []uint8{8, 1}, RootName: "admin", RootId: 2, }, { OemName: types.OEM_NAME_LENOVO, LanChannels: []uint8{1, 8}, RootName: "root", RootId: 2, }, { OemName: types.OEM_NAME_HP, LanChannels: []uint8{1, 2}, RootName: "root", RootId: 1, }, { OemName: types.OEM_NAME_HUAWEI, LanChannels: []uint8{1}, RootName: "root", RootId: 2, StrongPass: true, }, { OemName: types.OEM_NAME_FOXCONN, LanChannels: []uint8{1}, RootName: "root", RootId: 2, StrongPass: true, }, { OemName: types.OEM_NAME_QEMU, LanChannels: []uint8{8, 1}, RootName: "root", RootId: 2, StrongPass: true, }, { OemName: types.OEM_NAME_H3C, LanChannels: []uint8{1}, RootName: "root", RootId: 2, StrongPass: true, }, }
Functions ¶
This section is empty.
Types ¶
type BaremetalProfileDetails ¶
type BaremetalProfileDetails struct {
SBaremetalProfile
}
func (BaremetalProfileDetails) ToSpec ¶
func (detail BaremetalProfileDetails) ToSpec() BaremetalProfileSpec
type BaremetalProfileListInput ¶
type BaremetalProfileListInput struct { apis.StandaloneAnonResourceListInput OemName []string `json:"oem_name"` Model []string `json:"model"` }
func (*BaremetalProfileListInput) Normalize ¶
func (input *BaremetalProfileListInput) Normalize()
type BaremetalProfileSpec ¶
type BaremetalProfileSpecs ¶
type BaremetalProfileSpecs []BaremetalProfileSpec
func (BaremetalProfileSpecs) Len ¶
func (a BaremetalProfileSpecs) Len() int
func (BaremetalProfileSpecs) Less ¶
func (a BaremetalProfileSpecs) Less(i, j int) bool
func (BaremetalProfileSpecs) Swap ¶
func (a BaremetalProfileSpecs) Swap(i, j int)
type SBaremetalProfile ¶
type SBaremetalProfile struct { apis.SStandaloneAnonResourceBase // 品牌名称(English) OemName string `json:"oem_name"` Model string `json:"model"` LanChannel byte `json:"lan_channel"` LanChannel2 byte `json:"lan_channel2"` LanChannel3 byte `json:"lan_channel3"` // BMC Root账号名称,默认为 root RootName string `json:"root_name"` // BMC Root账号ID,默认为 2 RootId int `json:"root_id"` // 是否要求强密码 StrongPass bool `json:"strong_pass"` }
SBaremetalProfile is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models/baremetal.SBaremetalProfile.
Click to show internal directories.
Click to hide internal directories.