Documentation ¶
Index ¶
- func AddVMFlags(set *flag.FlagSet, cfg *VMConfig)
- func ArchStringToQemu(arch string) string
- func CanUseHostCPU(arch string) bool
- func DoVsock(cid uint32, uid, gid int) error
- func ForwardPort(localPort, remotePort int) error
- func GetDefaultCPUArch() string
- func GetLocalPorts(forwards []int) ([]int, error)
- func PortForwardsToQemuFlag(local, forwards []int) string
- type VMConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVMFlags ¶
func ArchStringToQemu ¶
func CanUseHostCPU ¶
func ForwardPort ¶
func GetDefaultCPUArch ¶
func GetDefaultCPUArch() string
func GetLocalPorts ¶
func PortForwardsToQemuFlag ¶
Types ¶
type VMConfig ¶
type VMConfig struct { CPUArch string NumCPU int PortForwards intListFlag NoKVM bool RequireKVM bool NoMicro bool CgroupVersion int Memory string DebugConsole bool Uid int Gid int InitCmd string // The code around this was remove so it really doesn't do anything right now. // Keeping for now as fully removing means trashing code that may still be useful. UseVsock bool SocketForwards socketListFlag }
Click to show internal directories.
Click to hide internal directories.