Docker::Api::ApiClient
Inherits Docker::Api::Images / Docker::Api::Daemon / Docker::Api::Containers / Reference / Object
Low-level wrapper for the Docker Engine API.
Each method on maps one-to-one with a REST API endpoint, and either returns the response that the
API responds with or raises an Docker::ApiError. It's possible to use ApiClient directly if
you require the extra flexibility, however in most cases the abstractions provided by the
higher-level Docker::Client may be the better choice.
Constants
Constructors
Instance methods
Executes a DELETE request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a DELETE request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a DELETE request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a DELETE request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a DELETE request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a DELETE request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a GET request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a GET request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a GET request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a GET request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a GET request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a GET request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a HEAD request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a HEAD request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a HEAD request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a HEAD request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a HEAD request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a HEAD request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a OPTIONS request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a OPTIONS request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a OPTIONS request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a OPTIONS request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a OPTIONS request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a OPTIONS request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a PATCH request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a PATCH request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a PATCH request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a PATCH request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a PATCH request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a PATCH request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a POST request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a POST request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a POST request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a POST request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a POST request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a POST request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a PUT request on the docker client connection.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a PUT request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a PUT request on the docker client connection with a JSON body
formed from the passed NamedTuple.
Executes a PUT request and yields a HTTP::Client::Response.
When working with endpoint that provide stream responses these may be accessed as available
by calling #body_io on the yielded response object.
The response status will be automatically checked and a Docker::ApiError raised if unsuccessful.
Executes a PUT request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.
Executes a PUT request on the docker client connection with a JSON body
formed from the passed NamedTuple and yields streamed response entries to the block.