Documentation
¶
Overview ¶
Package storage provides common storage and serial-console helpers for Apple Virtualization VMs.
Index ¶
- func CreateBlockDevice(attachment vz.VZDiskImageStorageDeviceAttachment) vz.VZVirtioBlockDeviceConfiguration
- func CreateDirectoryShare(path string, readOnly bool) (vz.VZSingleDirectoryShare, error)
- func CreateDiskAttachment(path string, readOnly bool) (vz.VZDiskImageStorageDeviceAttachment, error)
- func CreateDiskImage(path string, sizeGB uint64) error
- func CreateSerialConsole(readFd, writeFd int) (vz.VZVirtioConsoleDeviceSerialPortConfiguration, error)
- func CreateStdioSerialConsole() (vz.VZVirtioConsoleDeviceSerialPortConfiguration, error)
- func NSDataFromBytes(data []byte) foundation.NSData
- func NSDataToBytes(data foundation.NSData) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlockDevice ¶
func CreateBlockDevice(attachment vz.VZDiskImageStorageDeviceAttachment) vz.VZVirtioBlockDeviceConfiguration
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 ¶
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.