forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateConfigCmd.java
More file actions
51 lines (39 loc) · 1.16 KB
/
Copy pathCreateConfigCmd.java
File metadata and controls
51 lines (39 loc) · 1.16 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
48
49
50
51
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.exception.ConflictException;
import javax.annotation.CheckForNull;
import java.util.Map;
/**
* Command to create a new config
*
* @since {@link RemoteApiVersion#VERSION_1_30}
*/
public interface CreateConfigCmd extends SyncDockerCmd<CreateConfigResponse> {
@CheckForNull
String getName();
@CheckForNull
String getData();
@CheckForNull
Map<String, String> getLabels();
/**
* @param name
* - The new config name.
*/
CreateConfigCmd withName(String name);
/**
* @param data
* - The new config data.
*/
CreateConfigCmd withData(byte[] data);
/**
* @param labels
* - A mapping of labels keys and values. Labels are a mechanism for applying metadata to Docker objects.
*/
CreateConfigCmd withLabels(Map<String, String> labels);
/**
* @throws ConflictException Named config already exists
*/
@Override
CreateConfigResponse exec() throws ConflictException;
interface Exec extends DockerCmdSyncExec<CreateConfigCmd, CreateConfigResponse> {
}
}