storage

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 6 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

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