Documentation
¶
Overview ¶
Guest agent runs inside the Firecracker VM and handles: 1. Command execution requests from the host 2. Ready signal to indicate VM is ready 3. VFS client connection to host for FUSE
Index ¶
Constants ¶
View Source
const ( AF_VSOCK = 40 VMADDR_CID_HOST = 2 VsockPortExec = 5000 VsockPortVFS = 5001 VsockPortReady = 5002 MsgTypeExec uint8 = 1 MsgTypeExecResult uint8 = 2 MsgTypeStdout uint8 = 3 MsgTypeStderr uint8 = 4 MsgTypeSignal uint8 = 5 MsgTypeReady uint8 = 6 MsgTypeStdin uint8 = 7 MsgTypeResize uint8 = 8 MsgTypeExecTTY uint8 = 9 MsgTypeExit uint8 = 10 MsgTypeExecStream uint8 = 11 MsgTypeExecPipe uint8 = 12 MsgTypePortForward uint8 = 13 )
Variables ¶
View Source
var ( // Vsock errors ErrSocket = errors.New("socket") ErrBind = errors.New("bind") ErrListen = errors.New("listen") ErrConnect = errors.New("connect") ErrEOF = errors.New("EOF") // User resolution errors ErrResolveUID = errors.New("resolve uid") ErrResolveGID = errors.New("resolve gid") ErrUserNotFound = errors.New("user not found") ErrGroupNotFound = errors.New("group not found") )
Functions ¶
Types ¶
type ExecRequest ¶
type ExecResponse ¶
type ExecTTYRequest ¶
type PortForwardRequest ¶
Click to show internal directories.
Click to hide internal directories.