Documentation
¶
Index ¶
- Constants
- func ActivateVG() error
- func DeactivateVG() error
- func DetermineWindowsPartitions() (base string, recovery string, err error)
- func DoMount(device string, path string, options []string) error
- func DoUnmount(path string) error
- func LinuxDoPostMigrationConfig(ctx context.Context, distro string, majorVersion int) error
- func MapWindowsVersionToAbbrev(version string) (string, error)
- func WindowsInjectDrivers(ctx context.Context, windowsVersion string, mainPartition string, ...) error
- func WindowsOpenBitLockerPartition(partition string, encryptionKey string) error
- type BitLockerState
- type LSBLKOutput
- type LVSOutput
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 MapWindowsVersionToAbbrev ¶
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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.