Liking cljdoc? Tell your friends :D

clostack.client

A mostly generated wrapper to the CloudStack API.

A mostly generated wrapper to the CloudStack API.
raw docstring

api-nameclj

(api-name op)

Given a hyphenated name, yield a camel case one

Given a hyphenated name, yield a camel case one
sourceraw docstring

async-requestclj

(async-request client opcode handler)
(async-request {:keys [config opts]} opcode args handler)

Asynchronous request, will execute handler when response comes back.

Asynchronous request, will execute handler when response comes back.
sourceraw docstring

http-clientclj

(http-client)
(http-client {:keys [config opts] :or {opts {}}})

Create an HTTP client. Takes a map of two optional keys, if no configuration is present, it is picked up from the environment:

  • :config a map of the following optional:
    • :endpoint HTTP endpoint for the API
    • :api-key
    • :api-secret
    • :request-method (:get or :post, default to :post)
    • :page-size number of entities to fetch per page (500 per default)
  • :opts: an opt map handed out to aleph's http client
Create an HTTP client. Takes a map of two
optional keys, if no configuration is present,
it is picked up from the environment:

  - :config a map of the following optional:
    - :endpoint HTTP endpoint for the API
    - :api-key
    - :api-secret
    - :request-method (:get or :post, default to :post)
    - :page-size number of entities to fetch per page (500 per default)
  - :opts: an opt map handed out to aleph's http client
  
sourceraw docstring

http-getclj

(http-get uri opts params)
source

http-postclj

(http-post uri opts params)
source

paging-requestclj

(paging-request client op)
(paging-request client op args)
(paging-request client op args page width)

Perform a paging request. Elements are fetched by chunks of 500.

Perform a paging request. Elements are fetched by chunks of 500.
sourceraw docstring

parse-bodyclj

(parse-body response)
source

polling-requestclj

(polling-request client jobid)

Perform a polling request, in a blocking fashion. Fetches are done every second.

Perform a polling request, in a blocking fashion. Fetches are done every second.
sourceraw docstring

prepare-error-fnclj

(prepare-error-fn f)
source

requestclj

(request client opcode)
(request client opcode args)

Perform a synchronous HTTP request against the API

Perform a synchronous HTTP request against the API
sourceraw docstring

request-fnclj

(request-fn config)
source

request-fnsclj

source

with-responsecljmacro

(with-response [sym client opcode args] & body)

Perform an asynchronous response, using body as the function body to execute.

Perform an asynchronous response, using body as the function body
to execute.
sourceraw docstring

wrap-bodyclj

(wrap-body body resp handler)

Ensure that response is JSON-formatted, if so parse it

Ensure that response is JSON-formatted, if so parse it
sourceraw docstring

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

× close