Struct liboci_cli::Exec
source · pub struct Exec {
pub console_socket: Option<PathBuf>,
pub tty: bool,
pub cwd: Option<PathBuf>,
pub pid_file: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub no_new_privs: bool,
pub process: Option<PathBuf>,
pub detach: bool,
pub container_id: String,
pub command: Vec<String>,
}Expand description
Execute a process within an existing container
Fields§
§console_socket: Option<PathBuf>Unix socket (file) path , which will receive file descriptor of the writing end of the pseudoterminal
tty: bool§cwd: Option<PathBuf>Current working directory of the container
pid_file: Option<PathBuf>The file to which the pid of the container process should be written to
env: Vec<(String, String)>Environment variables that should be set in the container
no_new_privs: boolPrevent the process from gaining additional privileges
process: Option<PathBuf>Path to process.json
detach: boolDetach from the container process
container_id: StringIdentifier of the container
command: Vec<String>Command that should be executed in the container
Trait Implementations§
source§impl CommandFactory for Exec
impl CommandFactory for Exec
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_updatesource§impl FromArgMatches for Exec
impl FromArgMatches for Exec
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from
ArgMatches to self.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for Exec
impl Parser for Exec
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.