Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func AddVSockRegistryKey(port int) error
- func GetDistroID(name string) (string, error)
- func GetInstanceVMID(instanceName string) (string, error)
- func GetProcessCommandLine(name string) ([]string, error)
- func GetRandomFreeVSockPort(min, max int) (int, error)
- func IsVSockPortFree(port int) (bool, error)
- func RemoveVSockRegistryKey(port int) error
- type CommandLineJSON
Constants ¶
View Source
const (
MagicVSOCKSuffix = "-facb-11e6-bd58-64006a7986d3"
)
Variables ¶
This section is empty.
Functions ¶
func AddVSockRegistryKey ¶
AddVSockRegistryKey makes a vsock server running on the host acceessible in guests.
func GetDistroID ¶
GetDistroID returns a DistroId GUID corresponding to a Lima instance name.
func GetInstanceVMID ¶
GetInstanceVMID returns the VM ID of a running WSL instance.
func GetProcessCommandLine ¶
GetProcessCommandLine returns a slice of string containing all commandlines for a given process name.
func GetRandomFreeVSockPort ¶
GetRandomFreeVSockPort gets a list of all registered VSock ports and returns a non-registered port.
func IsVSockPortFree ¶
IsVSockPortFree determines if a VSock port has been registiered already.
func RemoveVSockRegistryKey ¶
RemoveVSockRegistryKey removes entries created by AddVSockRegistryKey.
Types ¶
type CommandLineJSON ¶
type CommandLineJSON []struct { CommandLine string }
Click to show internal directories.
Click to hide internal directories.