Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // Path to the mount point of the EFI System Partition (ESP). ESPPath string // gpt.Partition of the ESP System Partition. ESPPart *gpt.Partition // Partition number (1-based) of the ESP in the GPT partitions array. ESPPartNumber uint32 // Logger service for the update service. Logger logtree.LeveledLogger }
Service contains data and functionality to perform A/B updates on a Metropolis node.
func (*Service) CurrentlyRunningSlot ¶
CurrentlyRunningSlot returns the slot the current system is booted from.
func (*Service) InstallBundle ¶
InstallBundle installs the bundle at the given HTTP(S) URL into the currently inactive slot and sets that slot to boot next. If it doesn't return an error, a reboot boots into the new slot.
func (*Service) MarkBootSuccessful ¶
MarkBootSuccessful must be called after each boot if some implementation- defined criteria for a successful boot are met. If an update has been installed and booted and this function is called, the updated version is marked as default. If an issue occurs during boot and so this function is not called the old version will be started again on next boot.