|
9 | 9 | import com.github.dockerjava.api.command.CopyArchiveFromContainerCmd; |
10 | 10 | import com.github.dockerjava.api.command.CopyArchiveToContainerCmd; |
11 | 11 | import com.github.dockerjava.api.command.CopyFileFromContainerCmd; |
| 12 | +import com.github.dockerjava.api.command.CreateConfigCmd; |
12 | 13 | import com.github.dockerjava.api.command.CreateContainerCmd; |
13 | 14 | import com.github.dockerjava.api.command.CreateImageCmd; |
14 | 15 | import com.github.dockerjava.api.command.CreateNetworkCmd; |
|
21 | 22 | import com.github.dockerjava.api.command.ExecStartCmd; |
22 | 23 | import com.github.dockerjava.api.command.InfoCmd; |
23 | 24 | import com.github.dockerjava.api.command.InitializeSwarmCmd; |
| 25 | +import com.github.dockerjava.api.command.InspectConfigCmd; |
24 | 26 | import com.github.dockerjava.api.command.InspectContainerCmd; |
25 | 27 | import com.github.dockerjava.api.command.InspectExecCmd; |
26 | 28 | import com.github.dockerjava.api.command.InspectImageCmd; |
|
31 | 33 | import com.github.dockerjava.api.command.JoinSwarmCmd; |
32 | 34 | import com.github.dockerjava.api.command.KillContainerCmd; |
33 | 35 | import com.github.dockerjava.api.command.LeaveSwarmCmd; |
| 36 | +import com.github.dockerjava.api.command.ListConfigsCmd; |
34 | 37 | import com.github.dockerjava.api.command.ListContainersCmd; |
35 | 38 | import com.github.dockerjava.api.command.ListImagesCmd; |
36 | 39 | import com.github.dockerjava.api.command.ListNetworksCmd; |
|
47 | 50 | import com.github.dockerjava.api.command.PruneCmd; |
48 | 51 | import com.github.dockerjava.api.command.PullImageCmd; |
49 | 52 | import com.github.dockerjava.api.command.PushImageCmd; |
| 53 | +import com.github.dockerjava.api.command.RemoveConfigCmd; |
50 | 54 | import com.github.dockerjava.api.command.RemoveContainerCmd; |
51 | 55 | import com.github.dockerjava.api.command.RemoveImageCmd; |
52 | 56 | import com.github.dockerjava.api.command.RemoveNetworkCmd; |
@@ -435,12 +439,47 @@ public interface DockerClient extends Closeable { |
435 | 439 |
|
436 | 440 | /** |
437 | 441 | * Command to remove a secret |
| 442 | + * |
| 443 | + * @since {@link RemoteApiVersion#VERSION_1_25} |
438 | 444 | * @param secretId secret id or secret name |
439 | 445 | * @return command |
440 | 446 | */ |
441 | 447 | RemoveSecretCmd removeSecretCmd(String secretId); |
442 | 448 |
|
443 | 449 |
|
| 450 | + /** |
| 451 | + * Command to list all configs. Only applicable if docker runs in swarm mode. |
| 452 | + * |
| 453 | + * @since {@link RemoteApiVersion#VERSION_1_30} |
| 454 | + * @return command |
| 455 | + */ |
| 456 | + ListConfigsCmd listConfigsCmd(); |
| 457 | + |
| 458 | + /** |
| 459 | + * Command to create a config in a docker swarm. Only applicable if docker runs in swarm mode. |
| 460 | + * |
| 461 | + * @since {@link RemoteApiVersion#VERSION_1_30} |
| 462 | + * @return command |
| 463 | + */ |
| 464 | + CreateConfigCmd createConfigCmd(); |
| 465 | + |
| 466 | + /** |
| 467 | + * Command to inspect a service |
| 468 | + * |
| 469 | + * @since {@link RemoteApiVersion#VERSION_1_30} |
| 470 | + * @param configId config id or config name |
| 471 | + * @return command |
| 472 | + */ |
| 473 | + InspectConfigCmd inspectConfigCmd(String configId); |
| 474 | + |
| 475 | + /** |
| 476 | + * Command to remove a config |
| 477 | + * @since {@link RemoteApiVersion#VERSION_1_30} |
| 478 | + * @param configId config id or config name |
| 479 | + * @return command |
| 480 | + */ |
| 481 | + RemoveConfigCmd removeConfigCmd(String configId); |
| 482 | + |
444 | 483 |
|
445 | 484 | @Override |
446 | 485 | void close() throws IOException; |
|