public interface CopyFileFromContainerCmd extends SyncDockerCmd<java.io.InputStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
CopyFileFromContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
java.lang.String |
getContainerId() |
java.lang.String |
getHostPath() |
java.lang.String |
getResource() |
CopyFileFromContainerCmd |
withContainerId(java.lang.String containerId) |
CopyFileFromContainerCmd |
withHostPath(java.lang.String hostPath) |
CopyFileFromContainerCmd |
withResource(java.lang.String resource) |
@CheckForNull java.lang.String getContainerId()
@CheckForNull java.lang.String getHostPath()
@CheckForNull java.lang.String getResource()
CopyFileFromContainerCmd withContainerId(@Nonnull java.lang.String containerId)
CopyFileFromContainerCmd withHostPath(java.lang.String hostPath)
CopyFileFromContainerCmd withResource(@Nonnull java.lang.String resource)
java.io.InputStream exec() throws NotFoundException
InputStream
to prevent connection leaks.exec
in interface SyncDockerCmd<java.io.InputStream>
NotFoundException
- No such containerCopyright © 2020. All Rights Reserved.