podman-build/pkg/machine/vmconfigs/config_common.go
2025-10-11 12:30:35 +09:00

28 lines
555 B
Go

//go:build linux || freebsd
package vmconfigs
import (
"os"
"github.com/containers/podman/v5/pkg/machine/define"
"github.com/containers/podman/v5/pkg/machine/qemu/command"
)
type QEMUConfig struct {
// QMPMonitor is the qemu monitor object for sending commands
QMPMonitor command.Monitor
// QEMUPidPath is where to write the PID for QEMU when running
QEMUPidPath *define.VMFile
}
// Stubs
type AppleHVConfig struct{}
type HyperVConfig struct{}
type LibKrunConfig struct{}
type WSLConfig struct{}
func getHostUID() int {
return os.Getuid()
}