windows

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 10 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 acceessible 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(instanceName string) (string, error)

GetInstanceVMID returns the VM ID of a running WSL instance.

func GetProcessCommandLine

func GetProcessCommandLine(name string) ([]string, error)

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

func GetRandomFreeVSockPort

func GetRandomFreeVSockPort(min, max 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 registiered already.

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