apple

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProcessRunning

func CheckProcessRunning(processName string, pid int) error

CheckProcessRunning checks non blocking if the pid exited returns nil if process is running otherwise an error if not

func GenerateSystemDFilesForVirtiofsMounts

func GenerateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) ([]ignition.Unit, error)

func GetDebugDevices

func GetDebugDevices() ([]vfConfig.VirtioDevice, error)

func GetDebugDevicesCMDArgs

func GetDebugDevicesCMDArgs() ([]string, error)

GetDebugDevicesCMDArgs retrieves the debug devices and converts them to a cmdline format

func GetIgnitionVsockDevice

func GetIgnitionVsockDevice(path string) (vfConfig.VirtioDevice, error)

func GetIgnitionVsockDeviceAsCLI

func GetIgnitionVsockDeviceAsCLI(ignitionSocketPath string) ([]string, error)

GetIgnitionVsockDeviceAsCLI retrieves the ignition vsock device and converts it to a cmdline format

func GetVfKitEndpointCMDArgs

func GetVfKitEndpointCMDArgs(endpoint string) ([]string, error)

GetVfKitEndpointCMDArgs converts the vfkit endpoint to a cmdline format

func ResizeDisk

func ResizeDisk(mc *vmconfigs.MachineConfig, newSize strongunits.GiB) error

ResizeDisk uses os truncate to resize (only larger) a raw disk. the input size is assumed GiB

func ServeIgnitionOverSock

func ServeIgnitionOverSock(ignitionSocket *define.VMFile, mc *vmconfigs.MachineConfig) error

ServeIgnitionOverSock allows podman to open a small httpd instance on the vsock between the host and guest to inject the ignitionfile into fcos

func SetProviderAttrs

func SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions, state define.Status) error

func StartGenericAppleVM

func StartGenericAppleVM(mc *vmconfigs.MachineConfig, cmdBinary string, bootloader vfConfig.Bootloader, endpoint string) (func() error, func() error, error)

StartGenericAppleVM is wrapped by apple provider methods and starts the vm

func StartGenericNetworking

func StartGenericNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error

StartGenericNetworking is wrapped by apple provider methods

func VirtIOFsToVFKitVirtIODevice

func VirtIOFsToVFKitVirtIODevice(mounts []*vmconfigs.Mount) ([]vfConfig.VirtioDevice, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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