Struct bollard::image::PruneImagesOptions
source · pub struct PruneImagesOptions<T>{
pub filters: HashMap<T, Vec<T>>,
}
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", vec!["10m"]);
PruneImagesOptions{
filters,
};
PruneImagesOptions::<String>{
..Default::default()
};
Fields§
§filters: HashMap<T, Vec<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 for PruneImagesOptions<T>
impl<T> Clone for PruneImagesOptions<T>
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 moresource§impl<T> Debug for PruneImagesOptions<T>
impl<T> Debug for PruneImagesOptions<T>
source§impl<T> Default for PruneImagesOptions<T>
impl<T> Default for PruneImagesOptions<T>
source§fn default() -> PruneImagesOptions<T>
fn default() -> PruneImagesOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for PruneImagesOptions<T>
impl<T> PartialEq for PruneImagesOptions<T>
source§impl<T> Serialize for PruneImagesOptions<T>
impl<T> Serialize for PruneImagesOptions<T>
impl<T> StructuralPartialEq for PruneImagesOptions<T>
Auto Trait Implementations§
impl<T> Freeze for PruneImagesOptions<T>
impl<T> RefUnwindSafe for PruneImagesOptions<T>where
T: RefUnwindSafe,
impl<T> Send for PruneImagesOptions<T>where
T: Send,
impl<T> Sync for PruneImagesOptions<T>where
T: Sync,
impl<T> Unpin for PruneImagesOptions<T>where
T: Unpin,
impl<T> UnwindSafe for PruneImagesOptions<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)