public interface CreateConfigCmd extends SyncDockerCmd<CreateConfigResponse>
RemoteApiVersion#VERSION_1_30
Modifier and Type | Interface and Description |
---|---|
static interface |
CreateConfigCmd.Exec |
Modifier and Type | Method and Description |
---|---|
CreateConfigResponse |
exec() |
String |
getData() |
Map<String,String> |
getLabels() |
String |
getName() |
CreateConfigCmd |
withData(byte[] data) |
CreateConfigCmd |
withLabels(Map<String,String> labels) |
CreateConfigCmd |
withName(String name) |
@CheckForNull String getName()
@CheckForNull String getData()
@CheckForNull Map<String,String> getLabels()
CreateConfigCmd withName(String name)
name
- - The new config name.CreateConfigCmd withData(byte[] data)
data
- - The new config data.CreateConfigCmd withLabels(Map<String,String> labels)
labels
- - A mapping of labels keys and values. Labels are a mechanism for applying metadata to Docker objects.CreateConfigResponse exec() throws ConflictException
exec
in interface SyncDockerCmd<CreateConfigResponse>
ConflictException
- Named config already existsCopyright © 2025. All rights reserved.