Struct bollard::container::PruneContainersOptions
source · pub struct PruneContainersOptions<T>where
T: AsRef<str> + Eq + Hash,{
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the Prune Containers API
Examples
use bollard::container::PruneContainersOptions;
use std::collections::HashMap;
let mut filters = HashMap::new();
filters.insert("until", vec!("10m"));
PruneContainersOptions{
filters: filters
};
Fields§
§filters: HashMap<T, Vec<T>>
Filters to process on the prune list, encoded as JSON.
Available filters:
until=<timestamp>
Prune containers 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 containers with (or without, in caselabel!=...
is used) the specified labels.
Trait Implementations§
source§impl<T: Clone> Clone for PruneContainersOptions<T>where
T: AsRef<str> + Eq + Hash,
impl<T: Clone> Clone for PruneContainersOptions<T>where
T: AsRef<str> + Eq + Hash,
source§fn clone(&self) -> PruneContainersOptions<T>
fn clone(&self) -> PruneContainersOptions<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