All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.docker.client.swarm.ManageSwarm Maven / Gradle / Ivy

The newest version!
package de.gesellix.docker.client.swarm;

import de.gesellix.docker.client.EngineResponseContent;
import de.gesellix.docker.remote.api.Swarm;
import de.gesellix.docker.remote.api.SwarmInitRequest;
import de.gesellix.docker.remote.api.SwarmJoinRequest;
import de.gesellix.docker.remote.api.SwarmSpec;

public interface ManageSwarm {

  SwarmInitRequest newSwarmInitRequest();

  EngineResponseContent initSwarm();

  EngineResponseContent initSwarm(SwarmInitRequest swarmInitRequest);

  void joinSwarm(SwarmJoinRequest swarmJoinRequest);

  EngineResponseContent inspectSwarm();

  String getSwarmWorkerToken();

  String rotateSwarmWorkerToken();

  String getSwarmManagerToken();

  String rotateSwarmManagerToken();

  void leaveSwarm();

  void leaveSwarm(Boolean force);

  void unlockSwarm(String unlockKey);

  String getSwarmManagerUnlockKey();

  String rotateSwarmManagerUnlockKey();

  void updateSwarm(long version, SwarmSpec spec);

  void updateSwarm(long version, SwarmSpec spec, Boolean rotateWorkerToken);

  void updateSwarm(long version, SwarmSpec spec, Boolean rotateWorkerToken, Boolean rotateManagerToken);

  void updateSwarm(long version, SwarmSpec spec, Boolean rotateWorkerToken, Boolean rotateManagerToken, Boolean rotateManagerUnlockKey);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy