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

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

There is a newer version: 3.4.0
Show newest version
package com.github.dockerjava.api.command;

import java.util.Map;

import javax.annotation.CheckForNull;

public interface CreateVolumeCmd extends SyncDockerCmd {

    @CheckForNull
    String getName();

    @CheckForNull
    String getDriver();

    @CheckForNull
    Map getDriverOpts();

    /**
     * @param name
     *            - The new volume’s name. If not specified, Docker generates a name.
     */
    CreateVolumeCmd withName(String name);

    /**
     * @param driver
     *            - Name of the volume driver to use. Defaults to local for the name.
     */
    CreateVolumeCmd withDriver(String driver);

    /**
     * @param driverOpts
     *            - A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
     */
    CreateVolumeCmd withDriverOpts(Map driverOpts);

    interface Exec extends DockerCmdSyncExec {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy