Trait podman_rest_client::v5::apis::Exec
source · pub trait Exec:
HasConfig
+ Send
+ Sync {
// Provided methods
fn container_exec_libpod<'a>(
&'a self,
name: &'a str,
control: ContainerExecLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
fn exec_inspect_libpod<'a>(
&'a self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
fn exec_resize_libpod<'a>(
&'a self,
id: &'a str,
params: Option<ExecResizeLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
fn exec_start_libpod<'a>(
&'a self,
id: &'a str,
control: ExecStartLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>> { ... }
}
v5
only.Provided Methods§
sourcefn container_exec_libpod<'a>(
&'a self,
name: &'a str,
control: ContainerExecLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn container_exec_libpod<'a>( &'a self, name: &'a str, control: ContainerExecLibpodBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/containers/{name}/exec Create an exec instance Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.
sourcefn exec_inspect_libpod<'a>(
&'a self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_inspect_libpod<'a>( &'a self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
GET /libpod/exec/{id}/json Inspect an exec instance Return low-level information about an exec instance.
sourcefn exec_resize_libpod<'a>(
&'a self,
id: &'a str,
params: Option<ExecResizeLibpod>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_resize_libpod<'a>( &'a self, id: &'a str, params: Option<ExecResizeLibpod>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/exec/{id}/resize Resize an exec instance Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.
sourcefn exec_start_libpod<'a>(
&'a self,
id: &'a str,
control: ExecStartLibpodBody,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
fn exec_start_libpod<'a>( &'a self, id: &'a str, control: ExecStartLibpodBody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
POST /libpod/exec/{id}/start Start an exec instance Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. The stream format is the same as the attach endpoint.