vzrun

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDisk

func EnsureDisk(ctx context.Context, cfg VM) error

EnsureDisk Creates. and verifies if the VM Disk are present

Types

type VM added in v0.0.4

type VM struct {
	Name        string
	InstanceDir string
	MacVZYaml   *yaml.MacVZYaml
	Handlers    map[types.Kind]func(ctx context.Context, stream *yamux.Stream, event interface{})
	// contains filtered or unexported fields
}

VM VirtualMachine instance

func InitializeVM added in v0.0.4

func InitializeVM(
	instName string,
	handlers map[types.Kind]func(ctx context.Context, stream *yamux.Stream, event interface{}),
	sigintCh chan os.Signal,
) (*VM, error)

InitializeVM Create a virtual machine instance

func (VM) Run added in v0.0.4

func (vm VM) Run() error

Run Starts the VM instance

Jump to

Keyboard shortcuts

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