Package dev.strela.v1

Class StrelaSdk

java.lang.Object
dev.strela.v1.StrelaSdk

public class StrelaSdk extends Object
  • Method Details

    • minecraftDeployments

      public MinecraftDeployments minecraftDeployments()
      Returns:
      the Minecraft deployments repository
    • minecraftStatefulSets

      public MinecraftStatefulSets minecraftStatefulSets()
      Returns:
      the Minecraft stateful sets repository
    • minecraftServerSets

      public MinecraftServerSets minecraftServerSets()
      Returns:
      the Minecraft server sets repository
    • minecraftServers

      public MinecraftServers minecraftServers()
      Returns:
      the Minecraft servers repository
    • getCurrentMinecraftServerName

      public String getCurrentMinecraftServerName()
      Returns:
      the name of the current Minecraft server. If the SDK is not running in a Kubernetes pod, an IllegalStateException is thrown.
    • getCurrentMinecraftServer

      public CompletableFuture<dev.strela.v1.MinecraftServer> getCurrentMinecraftServer()
      Returns:
      the current Minecraft server. If the SDK is not running in a Kubernetes pod, an IllegalStateException is thrown.
    • create

      public static StrelaSdk create(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String defaultNamespace)
      Creates a new Strela SDK
      Parameters:
      kubernetesClient - the Kubernetes client
      defaultNamespace - the default namespace
      Returns:
      the Strela SDK
    • create

      public static StrelaSdk create(String defaultNamespace)
      Creates a new Strela SDK
      Parameters:
      defaultNamespace - the default namespace
      Returns:
      the Strela SDK
    • create

      public static StrelaSdk create()
      Creates a new Strela SDK
      Returns:
      the Strela SDK