com.github.dockerjava.api.command.CopyFileFromContainerCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
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 CopyFileFromContainerCmd extends SyncDockerCmd {
@CheckForNull
String getContainerId();
@CheckForNull
String getHostPath();
@CheckForNull
String getResource();
CopyFileFromContainerCmd withContainerId(@Nonnull String containerId);
CopyFileFromContainerCmd withHostPath(String hostPath);
CopyFileFromContainerCmd 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 {
}
}