Liking cljdoc? Tell your friends :D

com.palletops.docker

A wrapper for the docker API.

A wrapper for the docker API.
raw docstring

apiclj

source

api-callclj

(api-call {:keys [url] :as endpoint} path request)

Call the docker api via http.

Call the docker api via http.
sourceraw docstring

api-call-fnclj

(api-call-fn command
             {:keys [query-params path method json-body headers return
                     base64-json-headers doc doc-url]
              :or {method :get}
              :as api-def})

Given an api call definition map, generate a function that will call the api function.

Given an api call definition map, generate a function that will
call the api function.
sourceraw docstring

api-callscljmacro

(api-calls)
source

api-mapclj

(api-map command
         {:keys [query-params path method json-body headers return]
          :as api-def})

Given an api call definition map, generate a function that will return the map.

Given an api call definition map, generate a function that will
return the map.
sourceraw docstring

api-map-argsclj

(api-map-args command)

Define a schema for a map argument.

Define a schema for a map argument.
sourceraw docstring

api-map-returnclj

(api-map-return command)

Define a schema for a map return arguments.

Define a schema for a map return arguments.
sourceraw docstring

api-mapscljmacro

(api-maps)
source

api-reqcljmultimethod

Given an api command keyword and a map of arguments, return an http request map. The request has a :path element specifying the http path.

Function Signatures

  • Keyword {Any Any} -> {Any Any}
Given an api command keyword and a map of arguments, return an http
  request map.  The request has a :path element specifying the http
  path.

## Function Signatures

  - Keyword {Any Any} -> {Any Any}
sourceraw docstring

api-req-methodclj

(api-req-method command
                {:keys [query-params path method body json-body headers return
                        base64-json-headers doc doc-url]
                 :or {method :get}
                 :as api-def})

Given an api call definition map, generate a function that will return an http request map.

Given an api call definition map, generate a function that will
return an http request map.
sourceraw docstring

api-reqscljmacro

(api-reqs)
source

auth-mapclj

(auth-map {:as params :keys [username password email server]})

Function Signatures

  • (com.palletops.docker/api-map-args :auth) -> (com.palletops.docker/api-map-return :auth)

## Function Signatures

  - (com.palletops.docker/api-map-args :auth) -> (com.palletops.docker/api-map-return :auth)
sourceraw docstring

base64-json-headerclj

(base64-json-header [k v])

Convert a map entry into a base64 json.

Convert a map entry into a base64 json.
sourceraw docstring

buildclj

(build endpoint {:as params :keys [t q nocache content-type]})

Build an image from Dockerfile via stdin

See http://docs.docker.io/reference/api/docker_remote_api_v1.11/#build-an-image-from-dockerfile-via-stdin

Function Signatures

  • {(optional-key :keystore-pass) (maybe java.lang.String), (optional-key :keystore) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :trust-store) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :insecure?) Bool, (optional-key :trust-store-pass) (maybe java.lang.String), :url java.lang.String} (com.palletops.docker/api-map-args :build) -> (com.palletops.docker/api-map-return :build)
Build an image from Dockerfile via stdin

See http://docs.docker.io/reference/api/docker_remote_api_v1.11/#build-an-image-from-dockerfile-via-stdin

## Function Signatures

  - {(optional-key :keystore-pass) (maybe java.lang.String), (optional-key :keystore) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :trust-store) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :insecure?) Bool, (optional-key :trust-store-pass) (maybe java.lang.String), :url java.lang.String} (com.palletops.docker/api-map-args :build) -> (com.palletops.docker/api-map-return :build)
sourceraw docstring

build-mapclj

(build-map {:as params :keys [t q nocache]})

Function Signatures

  • (com.palletops.docker/api-map-args :build) -> (com.palletops.docker/api-map-return :build)

## Function Signatures

  - (com.palletops.docker/api-map-args :build) -> (com.palletops.docker/api-map-return :build)
sourceraw docstring

coerce-json-bodyclj

(coerce-json-body {:keys [coerce]}
                  {:keys [body status] :as resp}
                  keyword?
                  strict?
                  &
                  [charset])
source

commit-mapclj

(commit-map {:as params
             :keys [Env Memory MemorySwap DisableNetwork OpenStdin Tty m
                    WorkingDir AttachStderr AttachStdout Hostname ExposedPorts
                    author User AttachStdin container StdinOnce Volumes repo tag
                    PortSpecs Cmd]})

Function Signatures

  • (com.palletops.docker/api-map-args :commit) -> (com.palletops.docker/api-map-return :commit)

## Function Signatures

  - (com.palletops.docker/api-map-args :commit) -> (com.palletops.docker/api-map-return :commit)
sourceraw docstring

container-changes-mapclj

(container-changes-map {:as params :keys [id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-changes) -> (com.palletops.docker/api-map-return :container-changes)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-changes) -> (com.palletops.docker/api-map-return :container-changes)
sourceraw docstring

container-copy-mapclj

(container-copy-map {:as params :keys [id Resource]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-copy) -> (com.palletops.docker/api-map-return :container-copy)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-copy) -> (com.palletops.docker/api-map-return :container-copy)
sourceraw docstring

container-create-mapclj

(container-create-map
  {:as params
   :keys [Env Memory MemorySwap DisableNetwork OpenStdin Image Tty name
          WorkingDir AttachStderr AttachStdout Hostname ExposedPorts User
          VolumesFrom Dns AttachStdin StdinOnce Volumes PortSpecs Cmd]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-create) -> (com.palletops.docker/api-map-return :container-create)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-create) -> (com.palletops.docker/api-map-return :container-create)
sourceraw docstring

container-delete-mapclj

(container-delete-map {:as params :keys [force v id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-delete) -> (com.palletops.docker/api-map-return :container-delete)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-delete) -> (com.palletops.docker/api-map-return :container-delete)
sourceraw docstring

container-export-mapclj

(container-export-map {:as params :keys [id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-export) -> (com.palletops.docker/api-map-return :container-export)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-export) -> (com.palletops.docker/api-map-return :container-export)
sourceraw docstring

container-kill-mapclj

(container-kill-map {:as params :keys [signal id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-kill) -> (com.palletops.docker/api-map-return :container-kill)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-kill) -> (com.palletops.docker/api-map-return :container-kill)
sourceraw docstring

container-logs-mapclj

(container-logs-map {:as params :keys [follow stdout stderr timestamps id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-logs) -> (com.palletops.docker/api-map-return :container-logs)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-logs) -> (com.palletops.docker/api-map-return :container-logs)
sourceraw docstring

container-mapclj

(container-map {:as params :keys [id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container) -> (com.palletops.docker/api-map-return :container)

## Function Signatures

  - (com.palletops.docker/api-map-args :container) -> (com.palletops.docker/api-map-return :container)
sourceraw docstring

container-processes-mapclj

(container-processes-map {:as params :keys [ps_args id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-processes) -> (com.palletops.docker/api-map-return :container-processes)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-processes) -> (com.palletops.docker/api-map-return :container-processes)
sourceraw docstring

container-restart-mapclj

(container-restart-map {:as params :keys [t id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-restart) -> (com.palletops.docker/api-map-return :container-restart)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-restart) -> (com.palletops.docker/api-map-return :container-restart)
sourceraw docstring

container-start-mapclj

(container-start-map
  {:as params :keys [id Binds LxcConf PortBindings PublishAllPorts Privileged]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-start) -> (com.palletops.docker/api-map-return :container-start)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-start) -> (com.palletops.docker/api-map-return :container-start)
sourceraw docstring

container-stop-mapclj

(container-stop-map {:as params :keys [t id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-stop) -> (com.palletops.docker/api-map-return :container-stop)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-stop) -> (com.palletops.docker/api-map-return :container-stop)
sourceraw docstring

container-wait-mapclj

(container-wait-map {:as params :keys [id]})

Function Signatures

  • (com.palletops.docker/api-map-args :container-wait) -> (com.palletops.docker/api-map-return :container-wait)

## Function Signatures

  - (com.palletops.docker/api-map-args :container-wait) -> (com.palletops.docker/api-map-return :container-wait)
sourceraw docstring

ContainerIdclj

source

containers-mapclj

(containers-map {:as params :keys [all limit since before size]})

Function Signatures

  • (com.palletops.docker/api-map-args :containers) -> (com.palletops.docker/api-map-return :containers)

## Function Signatures

  - (com.palletops.docker/api-map-args :containers) -> (com.palletops.docker/api-map-return :containers)
sourceraw docstring

doc-url-prefixclj

Prefix for documentation urls.

Prefix for documentation urls.
sourceraw docstring

dockercljmultimethod

Call the docker API based on a map specifying the command to be called, and and arguments.

Function Signatures

  • {:url String} {Any Any} -> {Any Any}
Call the docker API based on a map specifying the command to be called,
  and and arguments.

## Function Signatures

  - {:url String} {Any Any} -> {Any Any}
sourceraw docstring

events-mapclj

(events-map {:as params :keys [since until]})

Function Signatures

  • (com.palletops.docker/api-map-args :events) -> (com.palletops.docker/api-map-return :events)

## Function Signatures

  - (com.palletops.docker/api-map-args :events) -> (com.palletops.docker/api-map-return :events)
sourceraw docstring

hdr-bbclj

source

http-requestclj

source

image-createclj

(image-create endpoint {:as params :keys [repo tag registry fromSource]})

Create an image, either by pull it from the registry or by importing it.

See http://docs.docker.io/reference/api/docker_remote_api_v1.11/#create-an-image

Function Signatures

  • {(optional-key :keystore-pass) (maybe java.lang.String), (optional-key :keystore) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :trust-store) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :insecure?) Bool, (optional-key :trust-store-pass) (maybe java.lang.String), :url java.lang.String} (com.palletops.docker/api-map-args :image-create) -> (com.palletops.docker/api-map-return :image-create)
Create an image, either by pull it from the registry or by importing it.

See http://docs.docker.io/reference/api/docker_remote_api_v1.11/#create-an-image

## Function Signatures

  - {(optional-key :keystore-pass) (maybe java.lang.String), (optional-key :keystore) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :trust-store) (maybe (either java.lang.String java.security.KeyStore)), (optional-key :insecure?) Bool, (optional-key :trust-store-pass) (maybe java.lang.String), :url java.lang.String} (com.palletops.docker/api-map-args :image-create) -> (com.palletops.docker/api-map-return :image-create)
sourceraw docstring

image-create-mapclj

(image-create-map {:as params :keys [repo tag registry fromSource]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-create) -> (com.palletops.docker/api-map-return :image-create)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-create) -> (com.palletops.docker/api-map-return :image-create)
sourceraw docstring

image-delete-mapclj

(image-delete-map {:as params :keys [force noprune name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-delete) -> (com.palletops.docker/api-map-return :image-delete)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-delete) -> (com.palletops.docker/api-map-return :image-delete)
sourceraw docstring

image-history-mapclj

(image-history-map {:as params :keys [name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-history) -> (com.palletops.docker/api-map-return :image-history)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-history) -> (com.palletops.docker/api-map-return :image-history)
sourceraw docstring

image-insert-mapclj

(image-insert-map {:as params :keys [path url name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-insert) -> (com.palletops.docker/api-map-return :image-insert)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-insert) -> (com.palletops.docker/api-map-return :image-insert)
sourceraw docstring

image-mapclj

(image-map {:as params :keys [name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image) -> (com.palletops.docker/api-map-return :image)

## Function Signatures

  - (com.palletops.docker/api-map-args :image) -> (com.palletops.docker/api-map-return :image)
sourceraw docstring

image-push-mapclj

(image-push-map {:as params :keys [registry name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-push) -> (com.palletops.docker/api-map-return :image-push)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-push) -> (com.palletops.docker/api-map-return :image-push)
sourceraw docstring

image-tag-mapclj

(image-tag-map {:as params :keys [force repo name]})

Function Signatures

  • (com.palletops.docker/api-map-args :image-tag) -> (com.palletops.docker/api-map-return :image-tag)

## Function Signatures

  - (com.palletops.docker/api-map-args :image-tag) -> (com.palletops.docker/api-map-return :image-tag)
sourceraw docstring

images-mapclj

(images-map {:as params :keys []})

Function Signatures

  • (com.palletops.docker/api-map-args :images) -> (com.palletops.docker/api-map-return :images)

## Function Signatures

  - (com.palletops.docker/api-map-args :images) -> (com.palletops.docker/api-map-return :images)
sourceraw docstring

info-mapclj

(info-map {:as params :keys []})

Function Signatures

  • (com.palletops.docker/api-map-args :info) -> (com.palletops.docker/api-map-return :info)

## Function Signatures

  - (com.palletops.docker/api-map-args :info) -> (com.palletops.docker/api-map-return :info)
sourceraw docstring

json-decodeclj

(json-decode s)
source

json-decode-streamclj

(json-decode-stream parser)

Return a lazy sequence of json objects returned by the parser.

Return a lazy sequence of json objects returned by the parser.
sourceraw docstring

json-parserclj

(json-parser rdr)
source

load-images-mapclj

(load-images-map {:as params :keys []})

Function Signatures

  • (com.palletops.docker/api-map-args :load-images) -> (com.palletops.docker/api-map-return :load-images)

## Function Signatures

  - (com.palletops.docker/api-map-args :load-images) -> (com.palletops.docker/api-map-return :load-images)
sourceraw docstring

ping-mapclj

(ping-map {:as params :keys []})

Function Signatures

  • (com.palletops.docker/api-map-args :ping) -> (com.palletops.docker/api-map-return :ping)

## Function Signatures

  - (com.palletops.docker/api-map-args :ping) -> (com.palletops.docker/api-map-return :ping)
sourceraw docstring

read-recordclj

(read-record dis)
source

read-stream-recordsclj

(read-stream-records is break-fn)
(read-stream-records is break-fn filter-fn)

Read stream record from is until it is closed, or break-fn called with the stream type keyword and stream content returns true. break-fn is called with :entry before anything is read.

Read stream record from is until it is closed, or break-fn called with the
stream type keyword and stream content returns true.  break-fn is called with
:entry before anything is read.
sourceraw docstring

repo-images-mapclj

(repo-images-map {:as params :keys [name]})

Function Signatures

  • (com.palletops.docker/api-map-args :repo-images) -> (com.palletops.docker/api-map-return :repo-images)

## Function Signatures

  - (com.palletops.docker/api-map-args :repo-images) -> (com.palletops.docker/api-map-return :repo-images)
sourceraw docstring

resp-bufclj

source

resp-buf-sizeclj

source

resp-streamsclj

source

utf-8clj

source

version-mapclj

(version-map {:as params :keys []})

Function Signatures

  • (com.palletops.docker/api-map-args :version) -> (com.palletops.docker/api-map-return :version)

## Function Signatures

  - (com.palletops.docker/api-map-args :version) -> (com.palletops.docker/api-map-return :version)
sourceraw docstring

wrap-log-responseclj

(wrap-log-response client)
source

wrap-requestclj

(wrap-request request)

Returns a HTTP request function coresponding to the given core client.

Returns a HTTP request function coresponding to the given core client.
sourceraw docstring

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

× close