Documentation ¶
Overview ¶
Package http implements the HTTP frontend.
Index ¶
Constants ¶
View Source
const ( TargetMetal = "metal" TargetCloud = "cloud" TargetSBC = "sbc" )
Target constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
Frontend is the HTTP frontend.
type Options ¶
type Options struct { ExternalURL *url.URL ExternalPXEURL *url.URL InstallerInternalRepository name.Repository InstallerExternalRepository name.Repository CacheSigningKey crypto.PrivateKey RemoteOptions []remote.Option }
Options configures the HTTP frontend.
type WizardParams ¶ added in v0.4.0
type WizardParams struct { Target string Version string Arch string Platform string Board string SecureBoot string Extensions []string Cmdline string CmdlineSet bool OverlayOptions string SelectedTarget string SelectedVersion string SelectedArch string SelectedPlatform string SelectedBoard string SelectedSecureBoot string SelectedExtensions []string SelectedCmdline string SelectedOverlayOptions string // Dynamically set fields. PlatformMeta metadata.Platform BoardMeta metadata.SBC }
WizardParams encapsulates the parameters of the wizard.
Some fields might be not set if we haven't reached that step yet.
func WizardParamsFromRequest ¶ added in v0.4.0
func WizardParamsFromRequest(r *http.Request) WizardParams
WizardParamsFromRequest extracts the wizard parameters from the request.
func (WizardParams) URLValues ¶ added in v0.4.0
func (p WizardParams) URLValues() url.Values
URLValues returns the URL values of the wizard parameters.
Click to show internal directories.
Click to hide internal directories.