baremetal

package
v0.0.0-...-6410feb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 BaremetalProfileCreateInput

type BaremetalProfileCreateInput struct {
	apis.StandaloneAnonResourceCreateInput

	OemName    string
	Model      string
	LanChannel uint8
	RootId     int
	RootName   string
	StrongPass bool
}

type BaremetalProfileDetails

type BaremetalProfileDetails struct {
	SBaremetalProfile
}

func (BaremetalProfileDetails) ToSpec

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 BaremetalProfileSpec struct {
	OemName     string
	Model       string
	LanChannels []uint8
	RootName    string
	RootId      int
	StrongPass  bool
}

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 BaremetalProfileUpdateInput

type BaremetalProfileUpdateInput struct {
	apis.StandaloneAnonResourceBaseUpdateInput

	LanChannel uint8
	RootId     *int
	RootName   string
	StrongPass *bool
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL