Struct bollard::image::PruneImagesOptions
source · Expand description
Parameters to the Prune Images API
Examples
use bollard::image::PruneImagesOptions;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("until", "10m");
PruneImagesOptions{
filters: filters,
};
PruneImagesOptions::<String>{
..Default::default()
};
Fields§
§filters: HashMap<T, T>
Filters to process on the prune list, encoded as JSON. Available filters:
dangling=<boolean>
When set totrue
(or1
), prune only unused and untagged images. When set tofalse
(or0
), all unused images are pruned.until=<string>
Prune images created before this timestamp. The<timestamp>
can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g.10m
,1h30m
) computed relative to the daemon machine’s time.label
(label=<key>
,label=<key>=<value>
,label!=<key>
, orlabel!=<key>=<value>
) Prune images with (or without, in caselabel!=...
is used) the specified labels.
Trait Implementations§
source§impl<T: Clone> Clone for PruneImagesOptions<T>where
T: AsRef<str> + Eq + Hash,
impl<T: Clone> Clone for PruneImagesOptions<T>where
T: AsRef<str> + Eq + Hash,
source§fn clone(&self) -> PruneImagesOptions<T>
fn clone(&self) -> PruneImagesOptions<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more