Trait ImagesApi
Source pub trait ImagesApi: Send + Sync {
Show 21 methods
// Required methods
fn image_build_libpod(
&self,
dockerfile: Option<&str>,
t: Option<&str>,
allplatforms: Option<bool>,
extrahosts: Option<&str>,
remote: Option<&str>,
q: Option<bool>,
nocache: Option<bool>,
cachefrom: Option<&str>,
pull: Option<bool>,
rm: Option<bool>,
forcerm: Option<bool>,
memory: Option<i32>,
memswap: Option<i32>,
cpushares: Option<i32>,
cpusetcpus: Option<&str>,
cpuperiod: Option<i32>,
cpuquota: Option<i32>,
buildargs: Option<&str>,
shmsize: Option<i32>,
squash: Option<bool>,
labels: Option<&str>,
layer_label: Option<Vec<String>>,
layers: Option<bool>,
networkmode: Option<&str>,
platform: Option<&str>,
target: Option<&str>,
outputs: Option<&str>,
httpproxy: Option<bool>,
unsetenv: Option<Vec<String>>,
unsetlabel: Option<Vec<String>>,
volume: Option<Vec<String>>,
) -> Pin<Box<dyn Future<Output = Result<ImageBuildLibpod200Response, Error>> + Send>>;
fn image_changes_libpod(
&self,
name: &str,
parent: Option<&str>,
diff_type: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn image_delete_all_libpod(
&self,
images: Option<Vec<String>>,
all: Option<bool>,
force: Option<bool>,
ignore: Option<bool>,
lookup_manifest: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<LibpodImagesRemoveReport, Error>> + Send>>;
fn image_delete_libpod(
&self,
name: &str,
force: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<LibpodImagesRemoveReport, Error>> + Send>>;
fn image_exists_libpod(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn image_export_libpod(
&self,
format: Option<&str>,
references: Option<Vec<String>>,
compress: Option<bool>,
oci_accept_uncompressed_layers: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>;
fn image_get_libpod(
&self,
name: &str,
format: Option<&str>,
compress: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>;
fn image_history_libpod(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<HistoryResponse, Error>> + Send>>;
fn image_import_libpod(
&self,
upload: PathBuf,
content_type: Option<&str>,
changes: Option<Vec<String>>,
message: Option<&str>,
reference: Option<&str>,
url: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<ImageImportReport, Error>> + Send>>;
fn image_inspect_libpod(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<ImageData, Error>> + Send>>;
fn image_list_libpod(
&self,
all: Option<bool>,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LibpodImageSummary>, Error>> + Send>>;
fn image_load_libpod(
&self,
upload: &str,
) -> Pin<Box<dyn Future<Output = Result<ImageLoadReport, Error>> + Send>>;
fn image_prune_libpod(
&self,
all: Option<bool>,
external: Option<bool>,
filters: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PruneReport>, Error>> + Send>>;
fn image_pull_libpod(
&self,
reference: Option<&str>,
quiet: Option<bool>,
compat_mode: Option<bool>,
arch: Option<&str>,
os: Option<&str>,
variant: Option<&str>,
policy: Option<&str>,
tls_verify: Option<bool>,
all_tags: Option<bool>,
x_registry_auth: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<LibpodImagesPullReport, Error>> + Send>>;
fn image_push_libpod(
&self,
name: &str,
destination: Option<&str>,
force_compression_format: Option<bool>,
tls_verify: Option<bool>,
quiet: Option<bool>,
x_registry_auth: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>;
fn image_resolve_libpod(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn image_scp_libpod(
&self,
name: &str,
destination: Option<&str>,
quiet: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ScpReport, Error>> + Send>>;
fn image_search_libpod(
&self,
term: Option<&str>,
limit: Option<i32>,
filters: Option<&str>,
tls_verify: Option<bool>,
list_tags: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ImageSearch200Response, Error>> + Send>>;
fn image_tag_libpod(
&self,
name: &str,
repo: Option<&str>,
tag: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn image_tree_libpod(
&self,
name: &str,
whatrequires: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ImageTreeReport, Error>> + Send>>;
fn image_untag_libpod(
&self,
name: &str,
repo: Option<&str>,
tag: Option<&str>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
}