Documentation ¶
Overview ¶
Package ipxe provides iPXE functionality.
Package ipxe provides iPXE functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootFromDiskMethod ¶
type BootFromDiskMethod string
BootFromDiskMethod defines a way to boot from disk.
const ( // BootIPXEExit is a method to boot from disk using iPXE script with `exit` command. BootIPXEExit BootFromDiskMethod = "ipxe-exit" // Boot404 is a method to boot from disk using HTTP 404 response to iPXE. Boot404 BootFromDiskMethod = "http-404" // BootSANDisk is a method to boot from disk using iPXE script with `sanboot` command. BootSANDisk BootFromDiskMethod = "ipxe-sanboot" )
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents an iPXE handler.
func NewHandler ¶
func NewHandler(imageFactoryClient ImageFactoryClient, state state.State, options HandlerOptions, logger *zap.Logger) (*Handler, error)
NewHandler creates a new iPXE server.
type HandlerOptions ¶
type HandlerOptions struct { APIAdvertiseAddress string BootFromDiskMethod string APIPort int UseLocalBootAssets bool AgentTestMode bool }
HandlerOptions represents the options for the iPXE handler.
type ImageFactoryClient ¶
type ImageFactoryClient interface {
SchematicIPXEURL(ctx context.Context, agentMode bool, talosVersion, arch string, extensions, extraKernelArgs []string) (string, error)
}
ImageFactoryClient represents an image factory client which ensures a schematic exists on image factory, and returns the PXE URL to it.
Click to show internal directories.
Click to hide internal directories.