(create-login-request {:keys [:salt.core/master-url :salt.core/username
:salt.core/password :salt.core/eauth]
:or {eauth "pam"}
:as opts})
(create-request {:keys [:salt.core/master-url :url :method :headers
:content-type]
{:keys [:token]} :salt.core/login-response
:or {method :post content-type :json}
:as opts})
(create-sse-request {:keys [:salt.core/master-url :headers]
{:keys [:token]} :salt.core/login-response
:as opts})
(login req)
Executes login salt.http/request
, handles exception, parses body and return new channel with response.
Prepends master-url and appends '/login' to ring request url.
Request is retried with default backoff and retriable?. See salt.retry/with-retry
for more details.
Exception and parsed body is sent with channel and channel is closed afterwards.
Request is aleph ring request with additonal keys:
Key | Description |
---|---|
::salt.core/master-url | Base url of salt-master. Its prepended to ring :url |
::salt.core/username | Username to be used in salt authetincation if any |
::salt.core/password | Password to be used in salt authetincation if any |
::salt.core/eauth | Eauth system to be used in salt authentication. Please refer saltstack documentation for available values |
Executes login [[salt.http/request]], handles exception, parses body and return new channel with response. Prepends master-url and appends '/login' to ring request url. Request is retried with default backoff and retriable?. See [[salt.retry/with-retry]] for more details. Exception and parsed body is sent with channel and channel is closed afterwards. Request is aleph ring request with additonal keys: | Key | Description | | -------------------------| ------------| | `::salt.core/master-url` | Base url of salt-master. Its prepended to ring :url | `::salt.core/username` | Username to be used in salt authetincation if any | `::salt.core/password` | Password to be used in salt authetincation if any | `::salt.core/eauth` | Eauth system to be used in salt authentication. Please refer saltstack documentation for available values
(logout req)
Executes logout request with request
function.
Executes logout request with [[request]] function.
(request req)
Executes salt.http/request
, handles exception, parses body and return new channel with response.
Prepends master-url to ring request url.
Request is retried with default backoff and retriable?. See salt.retry/with-retry
for more details.
Exception and parsed body is sent with channel and channel is closed afterwards.
Request is aleph ring request with additonal keys:
Key | Description |
---|---|
::salt.core/master-url | Base url of salt-master. Its prepended to ring :url |
::salt.core/login-response | Response from salt.api/login |
Executes [[salt.http/request]], handles exception, parses body and return new channel with response. Prepends master-url to ring request url. Request is retried with default backoff and retriable?. See [[salt.retry/with-retry]] for more details. Exception and parsed body is sent with channel and channel is closed afterwards. Request is aleph ring request with additonal keys: | Key | Description | | ------------------------------| ------------| | `::salt.core/master-url` | Base url of salt-master. Its prepended to ring :url | `::salt.core/login-response` | Response from [[salt.api/login]]|
(sse req pool-opts sse-buffer-size)
Executes salt.http/request
, handles exception, parses individual SSEs and return new channel emiting SSEs.
Prepends master-url and appends '/events' to ring request url.
Request is retried with default backoff and retriable?. See salt.retry/with-retry
for more details.
If exception occurs, it is written to the channel and channel is closed.
If SSE connection is closed, channel is closed.
Request is aleph ring request with additonal keys
Key | Description |
---|---|
::salt.core/master-url | Base url of salt-master. It is preepended :url |
::salt.core/login-response | Response from salt.api/login |
Executes [[salt.http/request]], handles exception, parses individual SSEs and return new channel emiting SSEs. Prepends master-url and appends '/events' to ring request url. Request is retried with default backoff and retriable?. See [[salt.retry/with-retry]] for more details. If exception occurs, it is written to the channel and channel is closed. If SSE connection is closed, channel is closed. Request is aleph ring request with additonal keys | Key | Description | | ------------------------------| ------------| | `::salt.core/master-url` | Base url of salt-master. It is preepended :url | `::salt.core/login-response` | Response from [[salt.api/login]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close