Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func CreateMissingPartitions(dl *gadget.OnDiskVolume, pv *gadget.LaidOutVolume, opts *CreateOptions) ([]gadget.OnDiskStructure, error) + func KeysForRole(setupData *EncryptionSetupData) map[string]keys.EncryptionKey + func MountVolumes(onVolumes map[string]*gadget.Volume, encSetupData *EncryptionSetupData) (espMntDir string, unmount func() error, err error) + func SaveStorageTraits(model gadget.Model, allLaidOutVols map[string]*gadget.LaidOutVolume, ...) error + func WriteContent(onVolumes map[string]*gadget.Volume, ...) ([]*gadget.OnDiskVolume, error) + type CreateOptions struct + CreateAllMissingPartitions bool + GadgetRootDir string + type EncryptionSetupData struct + func EncryptPartitions(onVolumes map[string]*gadget.Volume, encryptionType secboot.EncryptionType, ...) (*EncryptionSetupData, error) + func (esd *EncryptionSetupData) EncryptedDevices() map[string]string + type InstalledSystemSideData struct + DeviceForRole map[string]string + KeyForRole map[string]keys.EncryptionKey + func FactoryReset(model gadget.Model, gadgetRoot, kernelRoot, bootDevice string, options Options, ...) (*InstalledSystemSideData, error) + func Run(model gadget.Model, gadgetRoot, kernelRoot, bootDevice string, options Options, ...) (*InstalledSystemSideData, error) + type Options struct + EncryptionType secboot.EncryptionType + Mount bool