A mostly generated wrapper to the CloudStack API.
A mostly generated wrapper to the CloudStack API.
(api-name s)
Given a hyphenated name, yield a camel case one
Given a hyphenated name, yield a camel case one
(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.
(http-client)
(http-client {:keys [config opts] :or {opts {}}})
Create an HTTP client
Create an HTTP client
(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.
(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.
(request client opcode)
(request client opcode args)
Perform a synchronous HTTP request against the API
Perform a synchronous HTTP request against the API
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close