Trait ContainersCompatApi
Source pub trait ContainersCompatApi: Send + Sync {
Show 25 methods
// Required methods
fn container_archive(
&self,
name: &str,
path: &str,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>;
fn container_archive_libpod(
&self,
name: &str,
path: &str,
rename: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>;
fn container_attach(
&self,
name: &str,
detach_keys: Option<&str>,
logs: Option<bool>,
stream: Option<bool>,
stdout: Option<bool>,
stderr: Option<bool>,
stdin: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_changes_libpod(
&self,
name: &str,
parent: Option<&str>,
diff_type: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_create(
&self,
body: CreateContainerConfig,
name: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<ContainerCreateResponse, Error>> + Send>>;
fn container_delete(
&self,
name: &str,
force: Option<bool>,
v: Option<bool>,
link: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_export(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_inspect(
&self,
name: &str,
size: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ContainerJson, Error>> + Send>>;
fn container_kill(
&self,
name: &str,
all: Option<bool>,
signal: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_list(
&self,
all: Option<bool>,
external: Option<bool>,
limit: Option<i32>,
size: Option<bool>,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Container>, Error>> + Send>>;
fn container_logs(
&self,
name: &str,
follow: Option<bool>,
stdout: Option<bool>,
stderr: Option<bool>,
since: Option<&str>,
until: Option<&str>,
timestamps: Option<bool>,
tail: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_pause(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_prune(
&self,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ContainersPruneReport>, Error>> + Send>>;
fn container_rename(
&self,
name: &str,
name2: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_resize(
&self,
name: &str,
h: Option<i32>,
w: Option<i32>,
running: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn container_restart(
&self,
name: &str,
t: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_start(
&self,
name: &str,
detach_keys: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_stats(
&self,
name: &str,
stream: Option<bool>,
one_shot: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>;
fn container_stop(
&self,
name: &str,
t: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_top(
&self,
name: &str,
ps_args: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<ContainerTopOkBody, Error>> + Send>>;
fn container_unpause(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_update(
&self,
name: &str,
resources: Option<UpdateConfig>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn container_wait(
&self,
name: &str,
condition: Option<&str>,
interval: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<ContainerWait200Response, Error>> + Send>>;
fn image_commit(
&self,
container: Option<&str>,
repo: Option<&str>,
tag: Option<&str>,
comment: Option<&str>,
author: Option<&str>,
pause: Option<bool>,
changes: Option<&str>,
squash: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn put_container_archive(
&self,
name: &str,
path: &str,
no_overwrite_dir_non_dir: Option<&str>,
copy_uidgid: Option<&str>,
request: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
}