pub struct Executor {
pub image: String,
pub command: Vec<String>,
pub workdir: Option<String>,
pub stdin: Option<String>,
pub stdout: Option<String>,
pub stderr: Option<String>,
pub env: Option<BTreeMap<String, String>>,
pub ignore_error: Option<bool>,
}
Expand description
An executor.
In short, an executor is a single command that is run in a different
container image. Executor
s are run sequentially as they are specified in
the task.
Fields§
§image: String
The image.
command: Vec<String>
The command.
workdir: Option<String>
The working directory.
stdin: Option<String>
The path from which to pipe the standard input stream.
stdout: Option<String>
The path to pipe the standard output stream to.
stderr: Option<String>
The path to pipe the standard error stream to.
env: Option<BTreeMap<String, String>>
The environment variables.
ignore_error: Option<bool>
Default behavior of running an array of executors is that execution stops on the first error.
If ignore_error
is true
, then the runner will record error exit
codes, but will continue on to the next executor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Executor
impl<'de> Deserialize<'de> for Executor
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Executor
impl StructuralPartialEq for Executor
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.