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 MsgTypeWriteFile uint8 = 14 MsgTypeReadFile uint8 = 15 MsgTypeListFiles uint8 = 16 MsgTypeFileResult uint8 = 17 )
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 FileResponse ¶ added in v0.1.25
type ListFilesRequest ¶ added in v0.1.25
type ListFilesRequest struct {
Path string `json:"path"`
}
type PortForwardRequest ¶
type ReadFileRequest ¶ added in v0.1.25
type ReadFileRequest struct {
Path string `json:"path"`
}
type VFSClient ¶
type VFSClient struct {
// contains filtered or unexported fields
}
VFS client for FUSE daemon (placeholder - would need full FUSE implementation)
func NewVFSClient ¶
type WriteFileRequest ¶ added in v0.1.25
Click to show internal directories.
Click to hide internal directories.