forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogSwarmObjectCmd.java
More file actions
94 lines (73 loc) · 2.09 KB
/
Copy pathLogSwarmObjectCmd.java
File metadata and controls
94 lines (73 loc) · 2.09 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
92
93
94
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.model.Frame;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
* Get docker service/task stdout/stderr logs
*/
public interface LogSwarmObjectCmd extends AsyncDockerCmd<LogSwarmObjectCmd, Frame> {
/**
* @param id ID or name of the service
* @return self
*/
LogSwarmObjectCmd withId(@Nonnull String id);
/**
* @param follow Return the logs as a raw stream.
* @return self
*/
LogSwarmObjectCmd withFollow(Boolean follow);
/**
* @param timestamps Add timestamps to every log line
* @return self
*/
LogSwarmObjectCmd withTimestamps(Boolean timestamps);
/**
* @param stdout Return logs from stdout
* @return self
*/
LogSwarmObjectCmd withStdout(Boolean stdout);
/**
* @param stderr Return logs from stderr
* @return self
*/
LogSwarmObjectCmd withStderr(Boolean stderr);
/**
* @param tail only return this number of log lines from the end of the logs.
* @return self
*/
LogSwarmObjectCmd withTail(Integer tail);
/**
* @param since Only return logs since this time, as a UNIX timestamp
* @return self
*/
LogSwarmObjectCmd withSince(Integer since);
/**
* @param details Show service context and extra details provided to logs.
* @return
*/
LogSwarmObjectCmd withDetails(Boolean details);
@CheckForNull
String getId();
@CheckForNull
Integer getTail();
@CheckForNull
Boolean getFollow();
@CheckForNull
Boolean getTimestamps();
@CheckForNull
Boolean getStdout();
@CheckForNull
Boolean getStderr();
@CheckForNull
Integer getSince();
@CheckForNull
Boolean getDetails();
/**
* @throws com.github.dockerjava.api.exception.NotFoundException no such service
*/
@Override
<T extends ResultCallback<Frame>> T exec(T resultCallback);
interface Exec extends DockerCmdAsyncExec<LogSwarmObjectCmd, Frame> {
}
}