Documentation ¶
Overview ¶
Package vm defines data types and functions define and share data between the runtime runq, proxy and init.
Index ¶
Constants ¶
const QemuMountPt = "/.qemu.mnt"
QemuMountPt is used to bind mount /var/lib/runq/qemu
Variables ¶
This section is empty.
Functions ¶
func ZipEncodeBase64 ¶
ZipEncodeBase64 encodes arbritray data into a gziped binary Gob and returns it encoded as base64.
Types ¶
type AppCapabilities ¶
type AppCapabilities struct { Ambient []string Bounding []string Effective []string Inheritable []string Permitted []string }
AppCapabilities defines whitelists of Linux capabilities for the target application.
type Certificates ¶
Certificates definenes TLS certificates
type Data ¶
type Data struct { APDevice string Cache9p string ContainerID string CPU int CPUArgs string Disks []Disk DNS DNS GitCommit string Hostname string MachineType string Mem int Mounts []Mount NestedVM bool Networks []Network NoExec bool QemuVersion string Rootdisk string RootdiskExclude []string Sysctl map[string]string Entrypoint Entrypoint Vsockd Vsockd }
Data contains all data needed by the VM.
func DecodeDataGob ¶
DecodeDataGob decodes a Gob binary buffer into a Data struct.
func ZipDecodeBase64 ¶
ZipDecodeBase64 decodes a base64 string, into a data struct.
type Disk ¶
type Disk struct { Cache string Dir string Fstype string ID string Mount bool Path string Serial string Type Disktype }
Disk defines a disk.
type Entrypoint ¶
type Entrypoint struct { User Args []string Capabilities AppCapabilities Cwd string DockerInit string Env []string NoNewPrivileges bool Rlimits map[string]syscall.Rlimit Runqenv bool SeccompGob []byte Systemd bool Terminal bool }
Entrypoint contains information of entrypoint.
func DecodeEntrypointGob ¶
func DecodeEntrypointGob(buf []byte) (*Entrypoint, error)
DecodeEntrypointGob decodes a Gob binary buffer into a Entrypoint struct.
type Msgtype ¶
type Msgtype uint8
Msgtype declares the type of a message.
const ( Signal Msgtype // IPC signal such as SIGTERM Vmdata // VM config data )
Message types
type Network ¶
type Network struct { Name string MacAddress string MTU int Addrs []netlink.Addr Gateway net.IP TapDevice string }
Network defines a network interface.