common

package
v0.0.0-...-1ba2b8a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootMode

type BootMode string

BootMode is the boot mode of the system +kubebuilder:validation:Enum=UEFI;legacy

const (
	UEFI            BootMode = "UEFI"
	SecureUEFI      BootMode = "UEFI secure boot"
	Legacy          BootMode = "legacy"
	DefaultBootMode BootMode = UEFI
)

Allowed boot mode

func (BootMode) IronicBootMode

func (bm BootMode) IronicBootMode() string

func (BootMode) MakeCapabilities

func (bm BootMode) MakeCapabilities() string

func (BootMode) MakeInstanceUpdate

func (bm BootMode) MakeInstanceUpdate(node *nodes.Node) (updates nodes.UpdateOpts)

func (BootMode) ReplaceInCapabilities

func (bm BootMode) ReplaceInCapabilities(capabilities string) string

type RootDeviceHints

type RootDeviceHints struct {
	// A Linux device name like "/dev/vda". The hint must match the
	// actual value exactly.
	DeviceName string `json:"deviceName,omitempty"`

	// A SCSI bus address like 0:0:0:0. The hint must match the actual
	// value exactly.
	HCTL string `json:"hctl,omitempty"`

	// A vendor-specific device identifier. The hint can be a
	// substring of the actual value.
	Model string `json:"model,omitempty"`

	// The name of the vendor or manufacturer of the device. The hint
	// can be a substring of the actual value.
	Vendor string `json:"vendor,omitempty"`

	// Device serial number. The hint must match the actual value
	// exactly.
	SerialNumber string `json:"serialNumber,omitempty"`

	// The minimum size of the device in Gigabytes.
	// +kubebuilder:validation:Minimum=0
	MinSizeGigabytes int `json:"minSizeGigabytes,omitempty"`

	// Unique storage identifier. The hint must match the actual value
	// exactly.
	WWN string `json:"wwn,omitempty"`

	// Unique storage identifier with the vendor extension
	// appended. The hint must match the actual value exactly.
	WWNWithExtension string `json:"wwnWithExtension,omitempty"`

	// Unique vendor storage identifier. The hint must match the
	// actual value exactly.
	WWNVendorExtension string `json:"wwnVendorExtension,omitempty"`

	// True if the device should use spinning media, false otherwise.
	Rotational *bool `json:"rotational,omitempty"`
}

RootDeviceHints holds the hints for specifying the storage location for the root filesystem for the image.

func (*RootDeviceHints) MakeHintMap

func (source *RootDeviceHints) MakeHintMap() map[string]string

MakeHintMap converts a RootDeviceHints instance into a string map suitable to pass to ironic.

Jump to

Keyboard shortcuts

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