Functions for invoking the build script API.
Functions for invoking the build script API.
(download-artifact ctx id)
Downloads the artifact with given id for the current job. Returns an input stream that can then be written to disk, or unzipped using archive functions.
Downloads the artifact with given id for the current job. Returns an input stream that can then be written to disk, or unzipped using archive functions.
(event-bus client)
Creates an event bus that receives all events from the build api using the
/events
endpoint. The bus can be subscribed to using manifold.bus/subscribe
.
Returns both the bus and a function which, when invoked, should close the http
connection.
Creates an event bus that receives all events from the build api using the `/events` endpoint. The bus can be subscribed to using `manifold.bus/subscribe`. Returns both the bus and a function which, when invoked, should close the http connection.
(make-client url token)
Creates a new api client function for the given url. It returns a function that requires a request object that will send a http request. The function returns a deferred with the result body. An authentication token is required.
Creates a new api client function for the given url. It returns a function that requires a request object that will send a http request. The function returns a deferred with the result body. An authentication token is required.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close