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
31 lines (24 loc) · 821 Bytes
/
Copy pathListConfigsCmdImpl.java
File metadata and controls
31 lines (24 loc) · 821 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
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 java.util.Objects;
/**
* 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) {
this.filters = Objects.requireNonNull(filters, "filters was not specified");
return this;
}
}