recipe

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FabName                      = "fab.yaml"
	WiringName                   = "wiring.yaml"
	InstallSuffix                = "-install"
	InstallArchiveSuffix         = InstallSuffix + ".tgz"
	InstallIgnitionSuffix        = InstallSuffix + ".ign"
	InstallUSBImageWorkdirSuffix = InstallSuffix + "-usb.wip"
	InstallUSBImageSuffix        = InstallSuffix + "-usb.img"
	InstallISOImageSuffix        = InstallSuffix + "-usb.iso"
	InstallHashSuffix            = InstallSuffix + ".inhash"
	RecipeBin                    = "hhfab-recipe"
)
View Source
const (
	ControlUSBRootRef  = "fabricator/control-usb-root"
	ControlUSBIgnition = "ignition.json"
	ControlOSTarget    = "/opt/hedgehog/install"
)
View Source
const (
	InstallLog            = "/var/log/install.log"
	HedgehogDir           = "/opt/hedgehog"
	InstallMarkerFile     = HedgehogDir + "/.install"
	InstallMarkerComplete = "complete"
)

Variables

Functions

func DoControlInstall

func DoControlInstall(ctx context.Context, workDir string) error

func DoControlUpgrade added in v0.32.0

func DoControlUpgrade(ctx context.Context, workDir string) error

Types

type BuildMode added in v0.32.0

type BuildMode string
const (
	BuildModeManual BuildMode = "manual"
	BuildModeUSB    BuildMode = "usb"
	BuildModeISO    BuildMode = "iso"
)

type ControlInstall

type ControlInstall struct {
	*ControlUpgrade
	WorkDir  string
	Fab      fabapi.Fabricator
	Control  fabapi.ControlNode
	Wiring   *apiutil.Loader
	RegUsers map[string]string
}

func (*ControlInstall) Run

func (c *ControlInstall) Run(ctx context.Context) error

type ControlInstallBuilder

type ControlInstallBuilder struct {
	WorkDir    string
	Fab        fabapi.Fabricator
	Control    fabapi.ControlNode
	Wiring     client.Reader
	Mode       BuildMode
	Downloader *artificer.Downloader
}

func (*ControlInstallBuilder) Build

type ControlUpgrade added in v0.32.0

type ControlUpgrade struct {
	WorkDir string
	Fab     fabapi.Fabricator
	Control fabapi.ControlNode
}

func (*ControlUpgrade) Run added in v0.32.0

func (c *ControlUpgrade) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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