Skip to main content

Module api

Module api 

Source
Expand description

A task’s requests to schedr’s REST API (M4.11h, the user’s B2): sent to the master over the agent’s stream, which runs them as the task; resent on a new stream until answered, for at most API_CALL_LIMIT.

Structs§

ApiCaller
What an attempt or a trigger calls the API with.
ApiRequest
An API call’s request, as a task makes it.

Constants§

API_CALL_LIMIT
How long a call waits for its answer, over reconnects, before it is given up.
MASKED_REQUEST
What a task is told when its request held a secret it read (as a trigger’s log is, B189).
NO_MASTER
Why a process that isn’t a task’s or a trigger’s (a connection’s test) can’t call the API.

Functions§

runner_answer
A runner’s schedr_model::runner::RunnerMessage::ApiCall answered: through api, or refused where there is none.

Type Aliases§

ApiSend
Sends a call on to the master (through the agent’s loop); the answer comes on the receiver.