pub struct StartRequest {
pub exec_id: String,
pub command: Vec<String>,
pub shell: bool,
pub cwd: Option<String>,
pub env: HashMap<String, String>,
pub user: Option<u32>,
pub group: Option<u32>,
pub timeout_sec: Option<f64>,
pub stdin: bool,
}Expand description
A start request. command is either an argv array or, with shell: true, a
single script string.
Fields§
§exec_id: StringCaller-minted idempotency key. Harbor retries, and a retry must not produce a second child.
command: Vec<String>argv when shell is false, or the script when it is true.
shell: bool§cwd: Option<String>Omitted means inherit the daemon’s working directory. See the module docs.
env: HashMap<String, String>§user: Option<u32>Numeric uid to demote to. Optional; omitted means run as the daemon’s own user.
group: Option<u32>§timeout_sec: Option<f64>Wall-clock budget. Validated before the child spawns — the predecessor raised on a bad value inside the waiter thread, by which point the child was already running and became an orphan.
stdin: boolWhether to give the child a writable stdin pipe. Defaults to false, which
keeps Stdio::null().
Opt-in rather than always-on, and not only for tidiness: a child holding an
open stdin pipe nobody will ever write to is a child that blocks forever
the first time it reads. /bin/sh reading a script from stdin, git
deciding it can prompt, any tool that probes for input — all of them behave
differently against a pipe than against /dev/null. Every existing caller
gets today’s behavior by not setting this.
Trait Implementations§
Source§impl Debug for StartRequest
impl Debug for StartRequest
Source§impl<'de> Deserialize<'de> for StartRequest
impl<'de> Deserialize<'de> for StartRequest
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>,
Source§impl JsonSchema for StartRequest
impl JsonSchema for StartRequest
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