Documentation ¶
Index ¶
- func ComputeCPUCount() uint
- func ComputeMemorySize() uint64
- func CreateAudioDeviceConfiguration() (*vz.VirtioSoundDeviceConfiguration, error)
- func CreateBlockDeviceConfiguration(diskPath string) (*vz.VirtioBlockDeviceConfiguration, error)
- func CreateFileAndWriteTo(data []byte, path string) error
- func CreateGraphicsDeviceConfiguration() (*vz.MacGraphicsDeviceConfiguration, error)
- func CreateKeyboardConfiguration() (*vz.USBKeyboardConfiguration, error)
- func CreateNetworkDeviceConfiguration(networkInterface vz.BridgedNetwork) (*vz.VirtioNetworkDeviceConfiguration, error)
- func CreateVMConfiguration(platformConfig vz.PlatformConfiguration, cpuCount uint, memorySize uint64, ...) (*vz.VirtualMachineConfiguration, error)
- func GetAuxiliaryStoragePath() string
- func GetDiskImagePath() string
- func GetHardwareModelPath() string
- func GetMachineIdentifierPath() string
- func GetRestoreImagePath() string
- func GetVMBundlePath() string
- func SetupMacPlatformConfiguration() (*vz.MacPlatformConfiguration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeCPUCount ¶
func ComputeCPUCount() uint
func ComputeMemorySize ¶
func ComputeMemorySize() uint64
func CreateAudioDeviceConfiguration ¶
func CreateAudioDeviceConfiguration() (*vz.VirtioSoundDeviceConfiguration, error)
func CreateFileAndWriteTo ¶
CreateFileAndWriteTo creates a new file and write data to it.
func CreateGraphicsDeviceConfiguration ¶
func CreateGraphicsDeviceConfiguration() (*vz.MacGraphicsDeviceConfiguration, error)
func CreateKeyboardConfiguration ¶
func CreateKeyboardConfiguration() (*vz.USBKeyboardConfiguration, error)
func CreateNetworkDeviceConfiguration ¶
func CreateNetworkDeviceConfiguration(networkInterface vz.BridgedNetwork) (*vz.VirtioNetworkDeviceConfiguration, error)
func CreateVMConfiguration ¶
func GetAuxiliaryStoragePath ¶
func GetAuxiliaryStoragePath() string
GetAuxiliaryStoragePath gets a path for auxiliary storage.
func GetHardwareModelPath ¶
func GetHardwareModelPath() string
GetHardwareModelPath gets a path for hardware model.
func GetMachineIdentifierPath ¶
func GetMachineIdentifierPath() string
GetMachineIdentifierPath gets a path for machine identifier.
func GetRestoreImagePath ¶
func GetRestoreImagePath() string
GetRestoreImagePath gets a path for restore image file.
func SetupMacPlatformConfiguration ¶
func SetupMacPlatformConfiguration() (*vz.MacPlatformConfiguration, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.