Functions for invoking the build script API.
Functions for invoking the build script API.
Retrieves the params for this build. This fetches the parameters from the API, and adds to them any additional parameters that have been specified on the build itself. Since these are in encrypted form, we need to decrypt them here.
Retrieves the params for this build. This fetches the parameters from the API, and adds to them any additional parameters that have been specified on the build itself. Since these are in encrypted form, we need to decrypt them here.
Given an encrypted data encryption key, decrypts it by sending a decryption request to the build api server.
Given an encrypted data encryption key, decrypts it by sending a decryption request to the build api server.
(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.
(events-to-stream client)
Listens to events on the build api server. This opens a streaming request that reads SSE from the server, and puts them on a manifold stream, which is returned, along with a function that can be used to close the stream.
Listens to events on the build api server. This opens a streaming request that reads SSE from the server, and puts them on a manifold stream, which is returned, along with a function that can be used to close the stream.
(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |