class

Docr::Endpoints::Exec

Inherits Reference / Object

The Exec class provides functionality related to executing commands within containers.

Constructors

new(client : Docr::Client)

Initializes the Exec endpoint with a specific client instance.

  • client: The client instance used for making API calls.
Source

Instance methods

client

Returns the associated client instance.

Source

Creates an exec instance for a container with a given configuration.

  • id: The ID of the container to create the exec instance for.
  • config: Configuration details for creating the exec instance.

Returns the ID of the created exec instance.

Source
inspect(id : String)

Inspects details about a specific exec instance.

  • id: The ID of the exec instance to inspect.

Returns a structured response after inspecting the exec instance.

Source
start(id : String, config : Docr::Types::ExecStartConfig) : IO

Starts an exec command with a given configuration.

  • id: The ID of the exec instance to start.
  • config: Configuration details for starting the exec command.

Returns the IO stream of the started command.

Source