forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateSecretCmd.java
More file actions
30 lines (22 loc) · 778 Bytes
/
Copy pathCreateSecretCmd.java
File metadata and controls
30 lines (22 loc) · 778 Bytes
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
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.exception.ConflictException;
import com.github.dockerjava.api.model.SecretSpec;
import com.github.dockerjava.core.RemoteApiVersion;
import javax.annotation.CheckForNull;
/**
* Command to create a new secret
*
* @since {@link RemoteApiVersion#VERSION_1_25}
*/
public interface CreateSecretCmd extends SyncDockerCmd<CreateSecretResponse> {
@CheckForNull
SecretSpec getSecretSpec();
CreateSecretCmd withSecretSpec(SecretSpec secretSpec);
/**
* @throws ConflictException Named secret already exists
*/
@Override
CreateSecretResponse exec() throws ConflictException;
interface Exec extends DockerCmdSyncExec<CreateSecretCmd, CreateSecretResponse> {
}
}