driverutil

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfiguredDriver

func CreateConfiguredDriver(inst *limatype.Instance, sshLocalPort int) (*driver.ConfiguredDriver, error)

CreateConfiguredDriver creates a driver.ConfiguredDriver for the given instance.

func EnsureDisk added in v2.0.3

func EnsureDisk(ctx context.Context, instDir, diskSize string, diskImageFormat image.Type) error

EnsureDisk creates the VM disk from the downloaded image. For ISO images, it renames the image to "iso" and creates an empty disk. For non-ISO images, it converts the image to "disk" and removes the original.

func InspectStatus

func InspectStatus(ctx context.Context, inst *limatype.Instance) (string, error)

func MigrateDiskLayout added in v2.1.0

func MigrateDiskLayout(instDir string) error

MigrateDiskLayout creates symlinks from the current filenames (disk, iso) to the legacy filenames (diffdisk, basedisk) used by older Lima versions. The original files are left in place so older Lima versions can still use them.

func ResolveVMType

func ResolveVMType(ctx context.Context, y *limatype.LimaYAML, filePath string) error

ResolveVMType sets the VMType field in the given LimaYAML if not already set. It validates the configuration against the specified or default VMType.

Types

This section is empty.

Jump to

Keyboard shortcuts

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