A mostly generated wrapper to the CloudStack API.
A mostly generated wrapper to the CloudStack API.
(api-name op)
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. Takes a map of two optional keys, if no configuration is present, it is picked up from the environment:
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 (value may be "cloaked" by exoscale.cloak) - :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
(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