pub enum CtxRequest {
Hello {
protocol: u32,
schedr_version: String,
},
ParamsGet,
RunGet,
SecretGet {
secret: SecretName,
},
ApiCall {
method: String,
path: String,
body: Option<Value>,
idempotency_key: Option<String>,
},
HandleAdd {
handle: CleanupHandle,
},
HandleList,
ConnectionGet {
name: String,
},
ConnectionEnvGet {
name: String,
prefix: String,
},
ResourceSet {
value: Value,
},
ResourceGet,
}Expand description
A request from a process of the task to the agent.
Variants§
Hello
The first message: the protocol the caller speaks (CTX_PROTOCOL), which must be
the agent’s, and its schedr version (for the messages).
Fields
ParamsGet
The run’s parameters.
RunGet
The run information.
SecretGet
A secret the task declares (secrets=), or one under a declared prefix.
Fields
secret: SecretNameWhich secret.
ApiCall
A request to schedr’s REST API (schedr task-ctx api, M4.11h), run by the master as
the task.
Fields
HandleAdd
Registers a cleanup handle (schedr task-ctx cleanup add).
Fields
handle: CleanupHandleThe handle.
HandleList
The attempt’s handles, in registration order (schedr task-ctx cleanup list).
ConnectionGet
A connection’s values, rendered (decision 174): any connection of the task’s root.
ConnectionEnvGet
A connection as a command gets it (decisions 184, 190): its files written in the
attempt’s folder, and its variables (task-ctx connection NAME --env PREFIX).
ResourceSet
Reports the value of the resource a CommandResource setup creates (schedr task-ctx resource set), as JSON; checked against its declared type at once.
ResourceGet
The value of the resource a command cleanup cleans up (schedr task-ctx resource get).
Trait Implementations§
Source§impl Clone for CtxRequest
impl Clone for CtxRequest
Source§fn clone(&self) -> CtxRequest
fn clone(&self) -> CtxRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CtxRequest
impl Debug for CtxRequest
Source§impl<'de> Deserialize<'de> for CtxRequest
impl<'de> Deserialize<'de> for CtxRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CtxRequest
Source§impl JsonSchema for CtxRequest
impl JsonSchema for CtxRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more