
org.testifyproject.github.dockerjava.api.command.RemoveVolumeCmd Maven / Gradle / Ivy
package org.testifyproject.testifyproject.github.dockerjava.api.org.testifyproject.testifyprojectmand;
import javax.annotation.Nonnull;
import org.testifyproject.testifyproject.github.dockerjava.api.exception.ConflictException;
import org.testifyproject.testifyproject.github.dockerjava.api.exception.NotFoundException;
/**
* Remove a volume.
*
* @author Marcus Linke
*/
public interface RemoveVolumeCmd extends SyncDockerCmd {
String getName();
RemoveVolumeCmd withName(@Nonnull String name);
/**
* @throws NotFoundException
* No such volume
* @throws ConflictException
* Volume is in use and cannot be removed
*/
@Override
Void exec() throws NotFoundException;
interface Exec extends DockerCmdSyncExec {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy