worker

package
v0.0.0-pre.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 22 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 DetermineFortigateVersion

func DetermineFortigateVersion() (string, 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 ReplaceFortigateBoot

func ReplaceFortigateBoot(kvmFile string) error

func WindowsInjectDrivers

func WindowsInjectDrivers(ctx context.Context, windowsVersion string, mainPartition string, recoveryPartition string, isoFile 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 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