forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListNetworksCmd.java
More file actions
34 lines (25 loc) · 857 Bytes
/
Copy pathListNetworksCmd.java
File metadata and controls
34 lines (25 loc) · 857 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
34
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.model.Network;
import javax.annotation.CheckForNull;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* List networks.
*
* @since {@link RemoteApiVersion#VERSION_1_21}
*/
public interface ListNetworksCmd extends SyncDockerCmd<List<Network>> {
@CheckForNull
Map<String, List<String>> getFilters();
ListNetworksCmd withNameFilter(String... networkName);
ListNetworksCmd withIdFilter(String... networkId);
/**
* @param filterName
* @param filterValues
* - Show only networks where the filter matches the given values
*/
ListNetworksCmd withFilter(String filterName, Collection<String> filterValues);
interface Exec extends DockerCmdSyncExec<ListNetworksCmd, List<Network>> {
}
}