forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListConfigsCmdImpl.java
More file actions
33 lines (25 loc) · 868 Bytes
/
Copy pathListConfigsCmdImpl.java
File metadata and controls
33 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.ListConfigsCmd;
import com.github.dockerjava.api.model.Config;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* List configs.
*/
public class ListConfigsCmdImpl extends AbstrDockerCmd<ListConfigsCmd, List<Config>> implements ListConfigsCmd {
private Map<String, List<String>> filters = Collections.emptyMap();
public ListConfigsCmdImpl(Exec exec) {
super(exec);
}
@Override
public Map<String, List<String>> getFilters() {
return filters;
}
public ListConfigsCmd withFilters(Map<String, List<String>> filters) {
checkNotNull(filters, "filters was not specified");
this.filters = filters;
return this;
}
}