Struct bollard::system::EventsOptions [−][src]
pub struct EventsOptions<T> where
T: Into<String> + Eq + Hash + Serialize, {
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the Events API
Examples
use bollard::system::EventsOptions;
use chrono::{Duration, Utc};
use std::collections::HashMap;
EventsOptions::<String>{
since: Some(Utc::now() - Duration::minutes(20)),
until: Some(Utc::now()),
filters: HashMap::new()
};
Fields
since: Option<DateTime<Utc>>
Show events created since this timestamp then stream new events.
until: Option<DateTime<Utc>>
Show events created until this timestamp then stop streaming.
filters: HashMap<T, Vec<T>>
A JSON encoded value of filters (a map[string][]string
) to process on the event list. Available filters:
config=<string>
config name or IDcontainer=<string>
container name or IDdaemon=<string>
daemon name or IDevent=<string>
event typeimage=<string>
image name or IDlabel=<string>
image or container labelnetwork=<string>
network name or IDnode=<string>
node IDplugin
= plugin name or IDscope
= local or swarmsecret=<string>
secret name or IDservice=<string>
service name or IDtype=<string>
object to filter by, one ofcontainer
,image
,volume
,network
,daemon
,plugin
,node
,service
,secret
orconfig
volume=<string>
volume name
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for EventsOptions<T> where
T: RefUnwindSafe,
impl<T> Send for EventsOptions<T> where
T: Send,
impl<T> Sync for EventsOptions<T> where
T: Sync,
impl<T> Unpin for EventsOptions<T> where
T: Unpin,
impl<T> UnwindSafe for EventsOptions<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more