forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListServicesCmd.java
More file actions
37 lines (28 loc) · 1 KB
/
Copy pathListServicesCmd.java
File metadata and controls
37 lines (28 loc) · 1 KB
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
35
36
37
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.model.Service;
import javax.annotation.CheckForNull;
import java.util.List;
import java.util.Map;
/**
* Command to list all services in a docker swarm. Only applicable if docker runs in swarm mode.
*
* @since {@link RemoteApiVersion#VERSION_1_24}
*/
public interface ListServicesCmd extends SyncDockerCmd<List<Service>> {
@CheckForNull
Map<String, List<String>> getFilters();
/**
* @param ids - Show only services with the given ids
*/
ListServicesCmd withIdFilter(List<String> ids);
/**
* @param names - Show only services with the given names
*/
ListServicesCmd withNameFilter(List<String> names);
/**
* @param labels - Show only services with the passed labels. Labels is a {@link Map} that contains label keys and values
*/
ListServicesCmd withLabelFilter(Map<String, String> labels);
interface Exec extends DockerCmdSyncExec<ListServicesCmd, List<Service>> {
}
}