storage

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Package storage provides common storage and serial-console helpers for Apple Virtualization VMs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlockDevice

CreateBlockDevice creates a Virtio block device configuration.

func CreateDirectoryShare

func CreateDirectoryShare(path string, readOnly bool) (vz.VZSingleDirectoryShare, error)

CreateDirectoryShare creates a single-directory share for VirtioFS.

func CreateDiskAttachment

func CreateDiskAttachment(path string, readOnly bool) (vz.VZDiskImageStorageDeviceAttachment, error)

CreateDiskAttachment creates a disk image attachment for path.

func CreateDiskImage

func CreateDiskImage(path string, sizeGB uint64) error

CreateDiskImage creates a sparse disk image of the given size in gigabytes.

func CreateSerialConsole

func CreateSerialConsole(readFd, writeFd int) (vz.VZVirtioConsoleDeviceSerialPortConfiguration, error)

CreateSerialConsole creates a serial console wired to readFd and writeFd.

func CreateStdioSerialConsole

func CreateStdioSerialConsole() (vz.VZVirtioConsoleDeviceSerialPortConfiguration, error)

CreateStdioSerialConsole creates a serial console connected to stdin/stdout.

func NSDataFromBytes

func NSDataFromBytes(data []byte) foundation.NSData

NSDataFromBytes copies Go bytes into a new NSData object.

func NSDataToBytes

func NSDataToBytes(data foundation.NSData) []byte

NSDataToBytes copies bytes from an NSData object into a Go slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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