Liking cljdoc? Tell your friends :D

clj-docker-client.requests


connect*clj

(connect* {:keys [uri timeouts builder-fn]})

Connects to the provided :uri in the connection options.

Optionally takes connect, read, write and call timeout in ms. All are set to 0 by default, which is no timeout.

Returns the connection.

The url must be fully qualified with the protocol. eg. unix:///var/run/docker.sock or https://my.docker.host:6375

Connects to the provided :uri in the connection options.

Optionally takes connect, read, write and call timeout in ms.
All are set to 0 by default, which is no timeout.

Returns the connection.

The url must be fully qualified with the protocol.
eg. unix:///var/run/docker.sock or https://my.docker.host:6375
sourceraw docstring

fetchclj

(fetch request)

Performs the request.

If :as is passed as :stream, returns an InputStream. If passed as :socket, returns the underlying UNIX socket for direct I/O.

Performs the request.

If :as is passed as :stream, returns an InputStream.
If passed as :socket, returns the underlying UNIX socket for direct I/O.
sourceraw docstring

interpolate-pathclj

(interpolate-path path value-map)

Replaces all occurrences of {k1}, {k2} ... with the value map provided.

Example: given a/path/{id}/on/{not-this}/root/{id} and {:id hello} results in: a/path/hello/{not-this}/root/hello.

Replaces all occurrences of {k1}, {k2} ... with the value map provided.

Example:
given a/path/{id}/on/{not-this}/root/{id} and {:id hello}
results in: a/path/hello/{not-this}/root/hello.
sourceraw docstring

panic!clj

(panic! message)

Helper for erroring out for wrong args.

Helper for erroring out for wrong args.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close