Documentation ¶
Index ¶
- func CheckProcessRunning(processName string, pid int) error
- func GenerateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) ([]ignition.Unit, error)
- func GetDebugDevices() ([]vfConfig.VirtioDevice, error)
- func GetDebugDevicesCMDArgs() ([]string, error)
- func GetDefaultDevices(mc *vmconfigs.MachineConfig) ([]vfConfig.VirtioDevice, *define.VMFile, error)
- func GetIgnitionVsockDevice(path string) (vfConfig.VirtioDevice, error)
- func GetIgnitionVsockDeviceAsCLI(ignitionSocketPath string) ([]string, error)
- func GetVfKitEndpointCMDArgs(endpoint string) ([]string, error)
- func ResizeDisk(mc *vmconfigs.MachineConfig, newSize strongunits.GiB) error
- func ServeIgnitionOverSock(ignitionSocket *define.VMFile, mc *vmconfigs.MachineConfig) error
- func SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions, state define.Status) error
- func StartGenericAppleVM(mc *vmconfigs.MachineConfig, cmdBinary string, bootloader vfConfig.Bootloader, ...) (func() error, func() error, error)
- func StartGenericNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
- func VirtIOFsToVFKitVirtIODevice(mounts []*vmconfigs.Mount) ([]vfConfig.VirtioDevice, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProcessRunning ¶
CheckProcessRunning checks non blocking if the pid exited returns nil if process is running otherwise an error if not
func GetDebugDevices ¶
func GetDebugDevices() ([]vfConfig.VirtioDevice, error)
func GetDebugDevicesCMDArgs ¶
GetDebugDevicesCMDArgs retrieves the debug devices and converts them to a cmdline format
func GetDefaultDevices ¶
func GetDefaultDevices(mc *vmconfigs.MachineConfig) ([]vfConfig.VirtioDevice, *define.VMFile, error)
func GetIgnitionVsockDevice ¶
func GetIgnitionVsockDevice(path string) (vfConfig.VirtioDevice, error)
func GetIgnitionVsockDeviceAsCLI ¶
GetIgnitionVsockDeviceAsCLI retrieves the ignition vsock device and converts it to a cmdline format
func GetVfKitEndpointCMDArgs ¶
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 wrappered by apple provider methods and starts the vm
func StartGenericNetworking ¶
func StartGenericNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
StartGenericNetworking is wrappered by apple provider methods
func VirtIOFsToVFKitVirtIODevice ¶
func VirtIOFsToVFKitVirtIODevice(mounts []*vmconfigs.Mount) ([]vfConfig.VirtioDevice, error)
Types ¶
This section is empty.