Skip to content

Kathara.manager.docker.exec_stream.DockerExecStream

Tommaso Caiazzi edited this page Jan 8, 2025 · 1 revision

module Kathara.manager.docker.exec_stream.DockerExecStream


class DockerExecStream

Docker-specific class for handling the commands stream exec.

Attributes:

  • _stream (Generator): The generator yielding the output of the stream exec.
  • _stream_api_object (Any): The specific API object to interact with the underlying stream.
  • _client (DockerClient): The Docker client object to interact with the stream.

method DockerExecStream.__init__

__init__(
    stream: Generator,
    stream_api_object: str,
    client: docker.client.DockerClient
) → None

method DockerExecStream.exit_code

exit_code() → int

Return the exit code of the execution.

Returns:

  • int: The exit code of the execution.

method DockerExecStream.stream_next

stream_next() → Iterator

Return the next element from the stream.

Returns:

  • Iterator: The output iterator from the stream.

This file was automatically generated via lazydocs.

Clone this wiki locally