privatevm

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package privatevm provides focused wrappers for private Virtualization.framework VM selectors.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVMNotRunning = errors.New("vm not running")
	ErrVMNotStopped = errors.New("vm not stopped")
)

Functions

func CanCreateCore

func CanCreateCore(queue *vm.Queue, machine vz.VZVirtualMachine) (bool, error)

CanCreateCore returns the private _canCreateCore property of a running VM.

func CrashContextMessage

func CrashContextMessage(queue *vm.Queue, machine vz.VZVirtualMachine) string

CrashContextMessage returns the private _crashContextMessage property.

func Name

func Name(queue *vm.Queue, machine vz.VZVirtualMachine) string

Name returns the private _name property of a virtual machine.

func ServicePID

func ServicePID(queue *vm.Queue, machine vz.VZVirtualMachine) (int, error)

ServicePID returns the private _serviceProcessIdentifier of a running VM.

func SetCrashContextMessage

func SetCrashContextMessage(queue *vm.Queue, machine vz.VZVirtualMachine, msg string)

SetCrashContextMessage sets the private _crashContextMessage property.

func SetName

func SetName(queue *vm.Queue, machine vz.VZVirtualMachine, name string)

SetName sets the private _name property of a virtual machine.

func ShouldSendHIDReports

func ShouldSendHIDReports(queue *vm.Queue, machine vz.VZVirtualMachine) (bool, error)

ShouldSendHIDReports returns the private _shouldSendHIDReports property.

func StateDescription

func StateDescription(queue *vm.Queue, machine vz.VZVirtualMachine) (string, error)

StateDescription returns the private _stateDescription of a running VM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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