Liking cljdoc? Tell your friends :D

salt.client.async


handle-responseclj

(handle-response op)
(handle-response {:keys [:command] :as op} response)
source

initial-opclj

(initial-op req correlation-id)
source

request-asyncclj

(request-async client-atom req subs-chan sse-pub resp-chan)

Subscribe to sse-pub, invoke async client request and deliver responses in resp-chan.

This function uses salt.client.request/request to call async client. Channel will deliver:

  • Exception if error occurs
  • Parsed SSE events

This function implements best practices for working with salt-api as defined in https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#best-practices If SSE reconnect occurs during the call, jobs.print_job is used to retrieve the state of job.

Channel is closed after all minions return. Request will be merged with client default-http-request. See salt.client/client for more details.

Subscribe to `sse-pub`, invoke async client request and deliver responses in resp-chan.

This function uses [[salt.client.request/request]] to call async client.
Channel will deliver:
- Exception if error occurs
- Parsed SSE events

This function implements best practices for working with salt-api as defined in
https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#best-practices
If SSE reconnect occurs during the call, jobs.print_job is used to retrieve 
the state of job. 

Channel is closed after all minions return.
Request will be merged with client default-http-request. 
See [[salt.client/client]] for more details.
sourceraw docstring

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

× close