Documentation
¶
Index ¶
- func CreateConfiguredDriver(ctx context.Context, inst *limatype.Instance, sshLocalPort int) (*driver.ConfiguredDriver, error)
- func EnsureDisk(ctx context.Context, instDir, diskSize string, diskImageFormat image.Type) error
- func InspectStatus(ctx context.Context, inst *limatype.Instance) (string, error)
- func MigrateDiskLayout(instDir string) error
- func ResolveVMType(y *limatype.LimaYAML) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfiguredDriver ¶
func CreateConfiguredDriver(ctx context.Context, inst *limatype.Instance, sshLocalPort int) (*driver.ConfiguredDriver, error)
CreateConfiguredDriver creates a driver.ConfiguredDriver for the given instance. For external drivers, it reuses an existing server if one is already running, or starts a new one if needed.
func EnsureDisk ¶ added in v2.0.3
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 MigrateDiskLayout ¶ added in v2.1.0
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 ¶
ResolveVMType sets y.VMType to the appropriate default if it is nil. It validates the VMType is a known type (built-in or discovered external driver) but does NOT require the driver to be available on the current platform.
Types ¶
This section is empty.