Skip to content

Kathara.manager.kubernetes.terminal.session.KubernetesWSTerminalSession

Tommaso Caiazzi edited this page Mar 19, 2026 · 1 revision

module Kathara.manager.kubernetes.terminal.session.KubernetesWSTerminalSession

Global Variables

  • RESIZE_CHANNEL

class KubernetesWSTerminalSession

method KubernetesWSTerminalSession.__init__

__init__(handler: Any, client: Any = None) → None

method KubernetesWSTerminalSession.close

close() → None

Close the session and release resources.

Returns: None


method KubernetesWSTerminalSession.fileno

fileno() → Optional[int]

Return an OS-level file descriptor for the session, if available.

Returns:

  • Optional[int]: The file descriptor, or None if the session cannot be polled via fd-based readiness APIs.

method KubernetesWSTerminalSession.read

read(n: int = 4096) → bytes

Read up to n bytes from the session output stream.

Args:

  • n (int): Maximum number of bytes to read.

Returns:

  • bytes: Data read from the session.

method KubernetesWSTerminalSession.resize

resize(cols: int, rows: int) → None

Resize the session terminal dimensions.

Args:

  • cols (int): Terminal width in columns.
  • rows (int): Terminal height in rows.

Returns: None


method KubernetesWSTerminalSession.write

write(data: bytes) → None

Write bytes to the session input stream.

Args:

  • data (bytes): Data to send to the session.

Returns: None


This file was automatically generated via lazydocs.

Clone this wiki locally