Java implementation for updating Docker Swarm configurations and tokens.
// Source: https://github.com/docker-java/docker-java | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.dockerjava.core.command;
import java.util.Objects;
import com.github.dockerjava.api.command.UpdateSwarmCmd;
import com.github.dockerjava.api.model.SwarmSpec;
/**
* Update a swarm.
*/
public class UpdateSwarmCmdImpl extends AbstrDockerCmd<UpdateSwarmCmd, Void> implements
UpdateSwarmCmd {
private Long version;
private Boolean rotateWorkerToken;
private Boolean rotateManagerToken;
private SwarmSpec swarmSpec;
public UpdateSwarmCmdImpl(Exec exec, SwarmSpec swarmSpec) {
super(exec);
this.swarmSpec = swarmSpec;
}
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key