forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListContainersCmd.java
More file actions
91 lines (70 loc) · 2.28 KB
/
Copy pathListContainersCmd.java
File metadata and controls
91 lines (70 loc) · 2.28 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.github.dockerjava.api.command;
import java.util.List;
import java.util.Map;
import javax.annotation.CheckForNull;
import com.github.dockerjava.api.model.Container;
/**
* List containers
*
*/
public interface ListContainersCmd extends SyncDockerCmd<List<Container>> {
@CheckForNull
String getBeforeId();
@CheckForNull
Map<String, List<String>> getFilters();
@CheckForNull
Integer getLimit();
@CheckForNull
String getSinceId();
@CheckForNull
Boolean hasShowAllEnabled();
@CheckForNull
Boolean hasShowSizeEnabled();
/**
* @param before
* - Show only containers created before Id, include non-running ones.
*/
ListContainersCmd withBefore(String before);
/**
* @param exitcode
* - Show only containers that exited with the passed exitcode.
*/
ListContainersCmd withExitcodeFilter(Integer exitcode);
/**
* @param status
* - Show only containers with the passed status (created|restarting|running|paused|exited).
*/
ListContainersCmd withStatusFilter(String status);
/**
* @param labels
* - Show only containers with the passed labels.
*/
ListContainersCmd withLabelFilter(String... labels);
/**
* @param labels
* - Show only containers with the passed labels. Labels is a {@link Map} that contains label keys and values
*/
ListContainersCmd withLabelFilter(Map<String, String> labels);
/**
* @param limit
* - Show `limit` last created containers, include non-running ones. There is no limit by default.
*/
ListContainersCmd withLimit(Integer limit);
/**
* @param showAll
* - Show all containers. Only running containers are shown by default.
*/
ListContainersCmd withShowAll(Boolean showAll);
/**
* @param showSize
* - Show the containers sizes. This is false by default.
*/
ListContainersCmd withShowSize(Boolean showSize);
/**
* @param since
* - Show only containers created since Id, include non-running ones.
*/
ListContainersCmd withSince(String since);
interface Exec extends DockerCmdSyncExec<ListContainersCmd, List<Container>> {
}
}