shim

package
v6.0.0-...-1090a09 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotRunning      = errors.New("machine not in running state")
	ErrSSHNotListening = errors.New("machine is not listening on ssh port")
)

Functions

func CmdLineVolumesToMounts

func CmdLineVolumesToMounts(volumes []string, volumeType vmconfigs.VolumeMountType) []*vmconfigs.Mount

func List

func List(vmstubbers []vmconfigs.VMProvider, _ machine.ListOptions) ([]*machine.ListResponse, error)

List is done at the host level to allow for a *possible* future where more than one provider is used

func Reset

func Start

func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, opts machine.StartOptions, updateSystemConn *bool) error

func Stop

func Stop(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, hardStop bool) error

Stop stops the machine as well as supporting binaries/processes

func VMExists

VMExists looks across given providers for a machine's existence. returns the actual config and found bool

func VMExistsOnHyperVisor

func VMExistsOnHyperVisor(name string) (bool, error)

VMExistsOnHyperVisor actually checks the managing hypervisor (like WSL, HyperV) to make sure a VM with the same name does not happen to exist.

Types

type MultiProvider

type MultiProvider []vmconfigs.VMProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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