worker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const VMwareSDKPath = "/tmp/vmware/vmware-vix-disklib-distrib"

Variables

This section is empty.

Functions

func ActivateVG

func ActivateVG(opts ...string) 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, instance api.Instance, osName string, dryRun bool) error

func ReplaceFortigateBoot

func ReplaceFortigateBoot(kvmFile string, dryRun bool) error

func WindowsInjectDrivers

func WindowsInjectDrivers(ctx context.Context, osVersion string, isoFile string, dryRun bool) 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"`
		PV []struct {
			VGName string `json:"vg_name"`
			PVName string `json:"pv_name"`
		} `json:"pv"`
	} `json:"report"`
}

type PartitionType

type PartitionType string
const (
	PARTITION_TYPE_UNKNOWN PartitionType = "unknown"
	PARTITION_TYPE_PLAIN   PartitionType = "plain"
	PARTITION_TYPE_LVM     PartitionType = "lvm"
)

Jump to

Keyboard shortcuts

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