worker

package
v0.0.0-pre.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PARTITION_TYPE_UNKNOWN = iota
	PARTITION_TYPE_PLAIN
	PARTITION_TYPE_LVM
)

Variables

This section is empty.

Functions

func ActivateVG

func ActivateVG() error

func DeactivateVG

func DeactivateVG() error

func DetermineWindowsPartitions

func DetermineWindowsPartitions() (base string, recovery string, err error)

func DoMount

func DoMount(device string, path string, options []string) error

func DoUnmount

func DoUnmount(path string) error

func LinuxDoPostMigrationConfig

func LinuxDoPostMigrationConfig(ctx context.Context, distro string, majorVersion int) error

func MapWindowsVersionToAbbrev

func MapWindowsVersionToAbbrev(version string) (string, error)

MapWindowsVersionToAbbrev takes a full version string and returns the abbreviation used by distrobuilder logic. Versions supported are an intersection of what's supported by distrobuilder and vCenter.

func WindowsInjectDrivers

func WindowsInjectDrivers(ctx context.Context, windowsVersion string, mainPartition string, recoveryPartition string) error

func WindowsOpenBitLockerPartition

func WindowsOpenBitLockerPartition(partition string, encryptionKey string) error

Types

type BitLockerState

type BitLockerState int
const (
	BITLOCKERSTATE_UNKNOWN BitLockerState = iota
	BITLOCKERSTATE_UNENCRYPTED
	BITLOCKERSTATE_ENCRYPTED
	BITLOCKERSTATE_CLEARKEY
)

func WindowsDetectBitLockerStatus

func WindowsDetectBitLockerStatus(partition string) (BitLockerState, error)

type LSBLKOutput

type LSBLKOutput struct {
	BlockDevices []struct {
		Name     string `json:"name"`
		Serial   string `json:"serial"`
		Children []struct {
			Name         string `json:"name"`
			FSType       string `json:"fstype"`
			PartLabel    string `json:"partlabel"`
			PartTypeName string `json:"parttypename"`
		} `json:"children"`
	} `json:"blockdevices"`
}

type LVSOutput

type LVSOutput struct {
	Report []struct {
		LV []struct {
			VGName string `json:"vg_name"`
			LVName string `json:"lv_name"`
		} `json:"lv"`
	} `json:"report"`
}

Jump to

Keyboard shortcuts

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