forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopyArchiveFromContainerCmd.java
More file actions
38 lines (26 loc) · 1020 Bytes
/
Copy pathCopyArchiveFromContainerCmd.java
File metadata and controls
38 lines (26 loc) · 1020 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
35
36
37
38
package com.github.dockerjava.api.command;
import java.io.InputStream;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import com.github.dockerjava.api.exception.NotFoundException;
public interface CopyArchiveFromContainerCmd extends SyncDockerCmd<InputStream> {
@CheckForNull
String getContainerId();
@CheckForNull
String getHostPath();
@CheckForNull
String getResource();
CopyArchiveFromContainerCmd withContainerId(@Nonnull String containerId);
CopyArchiveFromContainerCmd withHostPath(String hostPath);
CopyArchiveFromContainerCmd withResource(@Nonnull String resource);
/**
* Its the responsibility of the caller to consume and/or close the {@link InputStream} to prevent connection leaks.
*
* @throws NotFoundException
* No such container
*/
@Override
InputStream exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec<CopyArchiveFromContainerCmd, InputStream> {
}
}