
org.testifyproject.github.dockerjava.api.command.CopyArchiveFromContainerCmd Maven / Gradle / Ivy
package org.testifyproject.testifyproject.github.dockerjava.api.org.testifyproject.testifyprojectmand;
import java.org.testifyproject.testifyproject.InputStream;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import org.testifyproject.testifyproject.github.dockerjava.api.exception.NotFoundException;
public interface CopyArchiveFromContainerCmd extends SyncDockerCmd {
@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 {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy