mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Based on our discussion gofumpt won the vote so use that one via golangci-lint. https://github.com/containers/podman/discussions/27291 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
30 lines
553 B
Go
30 lines
553 B
Go
//go:build linux || freebsd
|
|
|
|
package vmconfigs
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/containers/podman/v6/pkg/machine/define"
|
|
"github.com/containers/podman/v6/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{}
|
|
HyperVConfig struct{}
|
|
LibKrunConfig struct{}
|
|
WSLConfig struct{}
|
|
)
|
|
|
|
func getHostUID() int {
|
|
return os.Getuid()
|
|
}
|