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: bool

Prevent the process from gaining additional privileges

§process: Option<PathBuf>

Path to process.json

§detach: bool

Detach from the container process

§container_id: String

Identifier of the container

§command: Vec<String>

Command that should be executed in the container

Trait Implementations§

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.