Skip to main content

Module container_io

Module container_io 

Source
Expand description

The stdio of the containers and execs, pipes or a terminal, which the server reads into the log drivers, the attach clients and the output of the execs.

Modulesยง

drain ๐Ÿ”’
Bounding the output which gets forwarded after the process exited.
read_loop ๐Ÿ”’
The read loops of the output and the stdin of the process.
stdio ๐Ÿ”’
The stdio channels and the collector of the output of an exec.

Structsยง

ContainerIO ๐Ÿ”’
The stdio of a container or exec, a terminal or pipes, and the log drivers and attach endpoints its output goes to.

Enumsยง

Message ๐Ÿ”’
A message to be sent through the ContainerIO.
Pipe ๐Ÿ”’
Available pipe types.

Constantsยง

READ_BUFFER_SIZE ๐Ÿ”’
The most a read of a container I/O stream takes at once. The read loops read into the scratch buffer of their thread and copy each chunk out of it, see with_scratch, so an idle container holds no read buffer. 8 KiB halves the reads and log writes of 4 KiB for bulk output, the log files start the buffer of each chunk with as much, see LogFile::BUF_CAPACITY.
STDERR_TAIL_SIZE ๐Ÿ”’
How much of the end of a stderr gets kept for the error of a runtime which failed, with pipes of its own or on the stderr of the process. The last lines hold the reason, a runtime with debug logging writes far more.
STDIO_CHANNEL_SIZE ๐Ÿ”’
How many read chunks the stdio and terminal channels buffer per pipe.

Type Aliasesยง

SharedContainerIO ๐Ÿ”’
A container IO shared by its users, like the watcher, the attach endpoints and the consumer of the output of an exec.