All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dockerjava.api.command.RemoveVolumeCmd Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
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 {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy