public interface CopyArchiveToContainerCmd extends SyncDockerCmd<java.lang.Void>
Modifier and Type | Interface and Description |
---|---|
static interface |
CopyArchiveToContainerCmd.Exec |
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
exec() |
java.lang.String |
getContainerId() |
java.lang.String |
getHostResource() |
java.lang.String |
getRemotePath() |
java.io.InputStream |
getTarInputStream() |
boolean |
isDirChildrenOnly() |
boolean |
isNoOverwriteDirNonDir() |
CopyArchiveToContainerCmd |
withContainerId(java.lang.String containerId)
Set container's id
|
CopyArchiveToContainerCmd |
withDirChildrenOnly(boolean dirChildrenOnly)
If this flag is set to true, all children of the local directory will be copied to the remote without the root directory.
|
CopyArchiveToContainerCmd |
withHostResource(java.lang.String resource)
Set path to the resource on the host machine
|
CopyArchiveToContainerCmd |
withNoOverwriteDirNonDir(boolean noOverwriteDirNonDir)
If set to true then it will be an error if unpacking the given content would cause an existing directory to be replaced with a
non-directory and vice versa
|
CopyArchiveToContainerCmd |
withRemotePath(java.lang.String remotePath) |
CopyArchiveToContainerCmd |
withTarInputStream(java.io.InputStream tarInputStream)
Set the tar input stream that will be uploaded to the container.
|
java.lang.String getContainerId()
java.lang.String getHostResource()
java.io.InputStream getTarInputStream()
boolean isNoOverwriteDirNonDir()
boolean isDirChildrenOnly()
CopyArchiveToContainerCmd withContainerId(java.lang.String containerId)
containerId
- id of the container to copy file toCopyArchiveToContainerCmd withHostResource(java.lang.String resource)
resource
- path to the resource on the host machineCopyArchiveToContainerCmd withTarInputStream(java.io.InputStream tarInputStream)
tarInputStream
- the stream to upload to the containerCopyArchiveToContainerCmd withNoOverwriteDirNonDir(boolean noOverwriteDirNonDir)
noOverwriteDirNonDir
- flag to know if non directory can be overwrittenCopyArchiveToContainerCmd withDirChildrenOnly(boolean dirChildrenOnly)
dirChildrenOnly
- if root directory is ignoredjava.lang.String getRemotePath()
CopyArchiveToContainerCmd withRemotePath(java.lang.String remotePath)
java.lang.Void exec() throws NotFoundException
exec
in interface SyncDockerCmd<java.lang.Void>
NotFoundException
Copyright © 2019. All Rights Reserved.