package
0.0.0-20241231175036-e5a3c7784f22
Repository: https://github.com/firecracker-microvm/firecracker-containerd.git
Documentation: pkg.go.dev

# Functions

AddLocalMountIdentifier adds an identifier to a mount so that it can be detected by IsLocalMount.
InputPair returns an IOConnectorPair from the given vsock port to the FIFO file.
IsAgentOnlyIO checks whether Stdout target is agent only in order to allow log redirection entirely within the VM (currently cio.BinaryIO and cio.LogFile).
IsLocalMount returns true if the mount source is inside the VM as opposed to the default assumption that the mount source is a block device on the host.
NewIOConnectorProxy implements the IOProxy interface for a set of IOConnectorPairs, one each for stdin, stdout and stderr.
NewNullIOProxy creates an empty IOProxy.
NewTaskManager initializes a new TaskManager.
OutputPair returns an IOConnectorPair from the given FIFO to the vsock port.
ReadFIFOConnector returns a FIFO which is open for reading.
ShimDir holds files, sockets and FIFOs scoped to a single shim managing the VM with the given VMID.
StripLocalMountIdentifier removes the identifier that signals that a mount is inside the VM.
UpdateUserInSpec modifies a serialized json spec object with user information from inside the container.
VSockAcceptConnector provides an IOConnector that establishes the connection by listening on the provided guest-side vsock port and accepting the first connection that comes in.
VSockDialConnector returns an IOConnector for establishing vsock connections that are dialed from the host to a guest listener.
WriteFIFOConnector returns a FIFO which is open for writing.

# Structs

IOConnectorPair holds the read and write side of IOConnectors whose IO should be proxied.
IOConnectorResult represents the result of attempting to establish an IO connection.

# Interfaces

IOProxy is an interface to a particular implementation for initializing and copying the stdio of a process running in a VM.
TaskManager manages a set of tasks, ensuring that creation, deletion and io stream handling of the task happen in a synchronized manner.

# Type aliases

Dir represents the root of a firecracker-containerd VM directory, which holds various files, sockets and FIFOs used during VM runtime.
IOConnector is function that begins initializing an IO connection (i.e.