forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateVolumeCmd.java
More file actions
47 lines (35 loc) · 1.25 KB
/
Copy pathCreateVolumeCmd.java
File metadata and controls
47 lines (35 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.github.dockerjava.api.command;
import java.util.Map;
import javax.annotation.CheckForNull;
public interface CreateVolumeCmd extends SyncDockerCmd<CreateVolumeResponse> {
@CheckForNull
String getName();
@CheckForNull
Map<String, String> getLabels();
@CheckForNull
String getDriver();
@CheckForNull
Map<String, String> getDriverOpts();
/**
* @param name
* - The new volume’s name. If not specified, Docker generates a name.
*/
CreateVolumeCmd withName(String name);
/**
* @param labels
* - A mapping of labels keys and values. Labels are a mechanism for applying metadata to Docker objects.
*/
CreateVolumeCmd withLabels(Map<String, String> labels);
/**
* @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<String, String> driverOpts);
interface Exec extends DockerCmdSyncExec<CreateVolumeCmd, CreateVolumeResponse> {
}
}