mirror of
https://github.com/containers/podman.git
synced 2025-11-28 09:09:44 +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
706 B
Go
30 lines
706 B
Go
package define
|
|
|
|
import "os"
|
|
|
|
const (
|
|
UserCertsTargetPath = "/etc/containers/certs.d"
|
|
DefaultIdentityName = "machine"
|
|
DefaultMachineName = "podman-machine-default"
|
|
)
|
|
|
|
// MountTag is an identifier to mount a VirtioFS file system tag on a mount point in the VM.
|
|
// Ref: https://developer.apple.com/documentation/virtualization/running_intel_binaries_in_linux_vms_with_rosetta
|
|
const MountTag = "rosetta"
|
|
|
|
var DefaultFilePerm os.FileMode = 0o644
|
|
|
|
type CreateVMOpts struct {
|
|
Name string
|
|
Dirs *MachineDirs
|
|
ReExec bool
|
|
UserModeNetworking bool
|
|
}
|
|
|
|
type MachineDirs struct {
|
|
ConfigDir *VMFile
|
|
DataDir *VMFile
|
|
ImageCacheDir *VMFile
|
|
RuntimeDir *VMFile
|
|
}
|