Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ pub enum ContainerFilter {
LabelName(String),
Label(String, String),
Name(String),
Ancestor(String),
}

/// Builder interface for `ContainerListOptions`
Expand All @@ -514,6 +515,7 @@ impl ContainerListOptionsBuilder {
ContainerFilter::LabelName(n) => ("label", n),
ContainerFilter::Label(n, v) => ("label", format!("{}={}", n, v)),
ContainerFilter::Name(n) => ("name", n.to_string()),
ContainerFilter::Ancestor(n) => ("ancestor", n.to_string()),
};

param.entry(key).or_insert_with(Vec::new).push(value);
Expand Down