Liking cljdoc? Tell your friends :D

salt.client.async


handle-responseclj

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

Handles response of command. Called after command has been executed and response has been received. This function just dispatches handler based on operation command and returns new operation with new command

Handles response of command.
Called after command has been executed and response has been received.
This function just dispatches handler based on operation command
and returns new operation with new command
sourceraw docstring

initial-opclj

(initial-op req correlation-id recv-chan)

Create initial operation. Minion timeout is same computed from saltstack client timeout setting. See https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.client.LocalClient.

Create initial operation. Minion timeout is same computed from saltstack client timeout setting. See https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.client.LocalClient.
sourceraw docstring

master-clientsclj

source

parse-job-returnsclj

(parse-job-returns {:keys [:minions] :as op} returns)

Remove returned minions from set of expecting minions and store :last-receive-time.

Remove returned minions from set of expecting minions and store `:last-receive-time`.
sourceraw docstring

request-asyncclj

(request-async client-atom req async-resp-chan recv-buffer-size)

Subscribe with :sse-subs-chan, 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 Channel is closed after all minions return or master returns (in case of runner ane wheel). See salt.client/client for configuration options.

Subscribe with `:sse-subs-chan`, 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
Channel is closed after all minions return
or master returns (in case of runner ane wheel).
See [[salt.client/client]] for configuration options.
sourceraw docstring

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

× close