vz

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: 50 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 darwin/amd64

Index

Constants

View Source
const Enabled = true

Variables

This section is empty.

Functions

func DialQemu

func DialQemu(ctx context.Context, unixSock string) (*os.File, error)

DialQemu connects to a QEMU-compatible network stack via Unix socket and returns a datagram connection file for VZ. VZ VM setup uses dialQemu instead to retain Virtualization.framework-owned descriptors for the VM lifetime.

func PassFDToUnix

func PassFDToUnix(unixSock string) (*os.File, error)

PassFDToUnix sends one side of a socketpair to unixSock and returns the other side to the caller. VZ VM setup uses passFDToUnix instead so descriptors that Virtualization.framework keeps using can be retained for exactly one VM.

Types

type LimaVzDriver

type LimaVzDriver struct {
	Instance *limatype.Instance

	SSHLocalPort int
	// contains filtered or unexported fields
}

func New

func New() *LimaVzDriver

func (*LimaVzDriver) AdditionalSetupForSSH

func (l *LimaVzDriver) AdditionalSetupForSSH(_ context.Context) error

func (*LimaVzDriver) ApplySnapshot

func (l *LimaVzDriver) ApplySnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) BootScripts

func (l *LimaVzDriver) BootScripts(_ context.Context) (map[string][]byte, error)

func (*LimaVzDriver) CaptureScreenshot added in v2.2.0

func (l *LimaVzDriver) CaptureScreenshot(format string) ([]byte, error)

CaptureScreenshot captures the VM display window. format is "png" or "bmp"; anything else defaults to PNG. Implements driver.Screenshotter. Requires the GUI app bundle to be running.

func (*LimaVzDriver) ChangeDisplayPassword

func (l *LimaVzDriver) ChangeDisplayPassword(_ context.Context, _ string) error

func (*LimaVzDriver) Configure

func (*LimaVzDriver) Create

func (l *LimaVzDriver) Create(_ context.Context) error

func (*LimaVzDriver) CreateDisk

func (l *LimaVzDriver) CreateDisk(ctx context.Context) error

func (*LimaVzDriver) CreateSnapshot

func (l *LimaVzDriver) CreateSnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) Delete

func (l *LimaVzDriver) Delete(_ context.Context) error

func (*LimaVzDriver) DeleteSnapshot

func (l *LimaVzDriver) DeleteSnapshot(_ context.Context, _ string) error

func (*LimaVzDriver) DisplayConnection

func (l *LimaVzDriver) DisplayConnection(_ context.Context) (string, error)

func (*LimaVzDriver) ForwardGuestAgent

func (l *LimaVzDriver) ForwardGuestAgent(_ context.Context) bool

func (*LimaVzDriver) GuestAgentConn

func (l *LimaVzDriver) GuestAgentConn(_ context.Context) (net.Conn, string, error)

func (*LimaVzDriver) Info

func (l *LimaVzDriver) Info(_ context.Context) driver.Info

func (*LimaVzDriver) InspectStatus

func (l *LimaVzDriver) InspectStatus(_ context.Context, _ *limatype.Instance) string

func (*LimaVzDriver) ListSnapshots

func (l *LimaVzDriver) ListSnapshots(_ context.Context) ([]driver.Snapshot, error)

func (*LimaVzDriver) Register

func (l *LimaVzDriver) Register(_ context.Context) error

func (*LimaVzDriver) RunGUI

func (l *LimaVzDriver) RunGUI(_ context.Context) error

func (*LimaVzDriver) SSHAddress

func (l *LimaVzDriver) SSHAddress(_ context.Context) (string, error)

func (*LimaVzDriver) SetVsockEventCallback added in v2.1.0

func (l *LimaVzDriver) SetVsockEventCallback(callback func(*events.VsockEvent))

SetVsockEventCallback implements driver.VsockEventEmitter.

func (*LimaVzDriver) Start

func (l *LimaVzDriver) Start(ctx context.Context) (chan error, error)

func (*LimaVzDriver) Stop

func (l *LimaVzDriver) Stop(ctx context.Context) error

func (*LimaVzDriver) Unregister

func (l *LimaVzDriver) Unregister(_ context.Context) error

func (*LimaVzDriver) Validate

func (l *LimaVzDriver) Validate(_ context.Context) error

Jump to

Keyboard shortcuts

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