Skip to main content

Module stream_protocol

Module stream_protocol 

Source
Expand description

What the streaming protocols of Kubernetes share between exec, attach and port forwarding, whatever the transport.

Structsยง

ClientBytes ๐Ÿ”’
Bytes of a client for the logs, like ClientStr.
ClientStr ๐Ÿ”’
A string of a client for the logs: quoted and escaped, so that it cannot add lines to the log, and cut off after MAX_LOGGED_LEN characters.

Constantsยง

MAX_LOGGED_LEN ๐Ÿ”’
How much of what a client sent a log shows.
STREAM_CREATION_TIMEOUT ๐Ÿ”’
How long a Kubernetes client may take to open the streams which belong together, the default of the kubelet and CRI-O.
STREAM_TYPE_HEADER ๐Ÿ”’
The header which tells what a stream of a Kubernetes client is for.

Functionsยง

first_supported ๐Ÿ”’
The first of the protocols a client requested which the server supports, in the order of the client, with its name.