vhdx

package
v0.12.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

vhdx package adds the utility methods necessary to deal with the vhdx that are used as the scratch space for the containers and the uvm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScratchVhdxPartitionInfo

type ScratchVhdxPartitionInfo struct {
	DiskID      guid.GUID
	PartitionID guid.GUID
}

Scratch VHDs are formatted with GPT style and have 1 MSFT_RESERVED partition and 1 BASIC_DATA partition. This struct contains the partitionID of this BASIC_DATA partition and the DiskID of this scratch vhdx.

func GetScratchVhdPartitionInfo

func GetScratchVhdPartitionInfo(ctx context.Context, vhdxPath string) (_ ScratchVhdxPartitionInfo, err error)

Returns the VhdxInfo of a GPT vhdx at path vhdxPath.

Jump to

Keyboard shortcuts

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