windows

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v2.3.0

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