pub struct LocalDockerOptions {
pub access_token: String,
pub stdout_handler: Box<dyn FnMut(&[u8])>,
pub stderr_handler: Box<dyn FnMut(&[u8])>,
pub container_setup_commands: Vec<Vec<String>>,
pub modify_step_command: Box<dyn FnMut(&mut Vec<String>)>,
pub before_temp_dir_removal_hook: Box<dyn FnOnce(&Path)>,
}Expand description
Optional parameters for run_workflow_with_local_backend
Fields§
§access_token: StringThe Github personal access token to pass to actions (e.g. checkout); this must be valid!
stdout_handler: Box<dyn FnMut(&[u8])>This gets invoked for each write to stdout by an action step.
stderr_handler: Box<dyn FnMut(&[u8])>This gets invoked for each write to stderr by an action step.
container_setup_commands: Vec<Vec<String>>Commands to execute in each container after it has been created
modify_step_command: Box<dyn FnMut(&mut Vec<String>)>This gets applied to each step command before running it
before_temp_dir_removal_hook: Box<dyn FnOnce(&Path)>This runs before the temp directory is removed; takes the name of the temp directory (mapped to /github in containers).
Trait Implementations§
Source§impl Default for LocalDockerOptions
impl Default for LocalDockerOptions
Source§fn default() -> LocalDockerOptions
fn default() -> LocalDockerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalDockerOptions
impl !RefUnwindSafe for LocalDockerOptions
impl !Send for LocalDockerOptions
impl !Sync for LocalDockerOptions
impl Unpin for LocalDockerOptions
impl !UnwindSafe for LocalDockerOptions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more