Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialFirecracker ¶
DialFirecracker connects to a Firecracker microVM vsock port using its Unix Domain Socket. Firecracker abstracts vsock devices behind a host-side UDS. To connect to a guest port, the host must dial the UDS and perform a plaintext protocol handshake.
func Execute ¶
Execute sends the ExecPayload to the guest vsock server over the given connection, and streams the resulting output strictly to the provided writers. Since standard Go exec.Cmd combines stdout and stderr if we just wire them both to the same net.Conn on the guest, we stream everything from the connection into the stdout writer here (unless the guest agent multiplexes them with headers, which is out of scope for now).
Types ¶
type ExecPayload ¶
ExecPayload defines the JSON structure sent to the guest-agent to trigger a command.