Package dev.strela.v1

Class MinecraftDeployments

java.lang.Object
dev.strela.v1.KubernetesCrudRepository<dev.strela.v1.MinecraftDeployment>
dev.strela.v1.MinecraftDeployments

public class MinecraftDeployments extends KubernetesCrudRepository<dev.strela.v1.MinecraftDeployment>
A repository for Minecraft deployments
  • Constructor Details

    • MinecraftDeployments

      public MinecraftDeployments(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String defaultNamespace)
      Creates a new MinecraftDeployments repository
      Parameters:
      kubernetesClient - the Kubernetes client
      defaultNamespace - the default namespace
  • Method Details

    • list

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> list(String defaultNamespace, MinecraftDeploymentType type)
      Lists all Minecraft deployments with the given type
      Parameters:
      defaultNamespace - the default namespace
      type - the type of the deployments
      Returns:
      a future that will be completed when the deployments are listed. The future will contain the list of deployments
    • list

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> list(MinecraftDeploymentType type)
      Lists all Minecraft deployments with the given type
      Parameters:
      type - the type of the deployments
      Returns:
      a future that will be completed when the deployments are listed. The future will contain the list of deployments
    • listProxies

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listProxies(String defaultNamespace)
      Lists all Minecraft deployments with proxy as the type
      Parameters:
      defaultNamespace - the default namespace
      Returns:
      a future that will be completed when the proxies are listed. The future will contain the list of proxies
    • listProxies

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listProxies()
      Lists all Minecraft deployments with proxy as the type
      Returns:
      a future that will be completed when the proxies are listed. The future will contain the list of proxies
    • listServers

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listServers(String defaultNamespace)
      Lists all Minecraft deployments with server as the type
      Parameters:
      defaultNamespace - the default namespace
      Returns:
      a future that will be completed when the servers are listed. The future will contain the list of servers
    • listServers

      public CompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listServers()
      Lists all Minecraft deployments with server as the type
      Returns:
      a future that will be completed when the servers are listed. The future will contain the list of servers