forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAttachContainerCmd.java
More file actions
64 lines (43 loc) · 1.61 KB
/
Copy pathAttachContainerCmd.java
File metadata and controls
64 lines (43 loc) · 1.61 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
package com.github.dockerjava.api.command;
import java.io.InputStream;
import com.github.dockerjava.api.NotFoundException;
/**
* Attach to container
*
* @param logs
* - true or false, includes logs. Defaults to false.
*
* @param followStream
* - true or false, return stream. Defaults to false.
* @param stdout
* - true or false, includes stdout log. Defaults to false.
* @param stderr
* - true or false, includes stderr log. Defaults to false.
* @param timestamps
* - true or false, if true, print timestamps for every log line.
* Defaults to false.
*/
public interface AttachContainerCmd extends DockerCmd<InputStream>{
public String getContainerId();
public boolean hasLogsEnabled();
public boolean hasFollowStreamEnabled();
public boolean hasTimestampsEnabled();
public boolean hasStdoutEnabled();
public boolean hasStderrEnabled();
public AttachContainerCmd withContainerId(String containerId);
public AttachContainerCmd withFollowStream();
public AttachContainerCmd withFollowStream(boolean followStream);
public AttachContainerCmd withTimestamps(boolean timestamps);
public AttachContainerCmd withStdOut();
public AttachContainerCmd withStdOut(boolean stdout);
public AttachContainerCmd withStdErr();
public AttachContainerCmd withStdErr(boolean stderr);
public AttachContainerCmd withLogs(boolean logs);
/**
* @throws NotFoundException No such container
*/
@Override
public InputStream exec() throws NotFoundException;
public static interface Exec extends DockerCmdExec<AttachContainerCmd, InputStream> {
}
}