Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultDevice is the default boot device DefaultDevice = Device("default") // ForcePXE is used to configure pxe as the boot device ForcePXE = Device("pxe") // ForceDisk is used to configure disk as the boot device ForceDisk = Device("disk") // ForceBIOS is used to configure bios as the boot device ForceBIOS = Device("bios") )
Variables ¶
This section is empty.
Functions ¶
func RegisterDriver ¶
func RegisterDriver(factory DriverFactory, driver string)
RegisterDriver is called by implementations in order to register their factory function for each device they can control
func SetupLogging ¶
Types ¶
type Driver ¶
Driver is the interface to control boot
func NewDriverFromGinContext ¶
NewDriverFromGinContext creates a new Driver using info in the http request
type DriverFactory ¶
type DriverFactory func(context.Context, DriverOptions) (Driver, error)
DriverFactory is used to instantiate a new Driver
type DriverOptions ¶
DriverOptions contain the basic options needed to connect to device
type Options ¶
type Options struct { // Device is the boot device to force. Device Device `json:"device" binding:"required"` // Persistent controls whether Device should apply to all future boots. Persistent bool `json:"persistent,omitempty"` // EFI controls whether the the next boot should be in EFI mode. EFI bool `json:"efi,omitempty"` }
Options contain values relevant for boot actions
Click to show internal directories.
Click to hide internal directories.