com.github.dockerjava.api.command.RemoveVolumeCmd 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 javax.annotation.Nonnull;
import com.github.dockerjava.api.exception.ConflictException;
import com.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 {
}
}