windows

package
v2.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVSockRegistryKey

func AddVSockRegistryKey(port int) error

AddVSockRegistryKey makes a vsock server running on the host accessible in guests.

func GetDistroID

func GetDistroID(name string) (string, error)

GetDistroID returns a DistroId GUID corresponding to a Lima instance name.

func GetInstanceVMID

func GetInstanceVMID(ctx context.Context, instanceName string) (string, error)

GetInstanceVMID returns the VM ID of a running WSL instance.

func GetProcessCommandLine

func GetProcessCommandLine(ctx context.Context, name string) ([]string, error)

GetProcessCommandLine returns a slice of string containing all commandlines for a given process name.

func GetRandomFreeVSockPort

func GetRandomFreeVSockPort(minPort, maxPort int) (int, error)

GetRandomFreeVSockPort gets a list of all registered VSock ports and returns a non-registered port.

func IsVSockPortFree

func IsVSockPortFree(port int) (bool, error)

IsVSockPortFree determines if a VSock port has been registered already.

func IsWSLInstalled

func IsWSLInstalled() (bool, error)

IsWSLInstalled checks whether WSL is (probably) installed.

func RemoveVSockRegistryKey

func RemoveVSockRegistryKey(port int) error

RemoveVSockRegistryKey removes entries created by AddVSockRegistryKey.

Types

type CommandLineJSON

type CommandLineJSON []struct {
	CommandLine string
}

Jump to

Keyboard shortcuts

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