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
-
Field Summary
Fields inherited from class dev.strela.v1.KubernetesCrudRepository
customResourceClass, defaultNamespace, kubernetesClient -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftDeployments(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String defaultNamespace) Creates a new MinecraftDeployments repository -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> list(MinecraftDeploymentType type) Lists all Minecraft deployments with the given typeCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> list(String defaultNamespace, MinecraftDeploymentType type) Lists all Minecraft deployments with the given typeCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> Lists all Minecraft deployments with proxy as the typeCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listProxies(String defaultNamespace) Lists all Minecraft deployments with proxy as the typeCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> Lists all Minecraft deployments with server as the typeCompletableFuture<List<dev.strela.v1.MinecraftDeployment>> listServers(String defaultNamespace) Lists all Minecraft deployments with server as the typeMethods inherited from class dev.strela.v1.KubernetesCrudRepository
create, create, createInformer, createInformer, delete, delete, get, get, list, list, update, update, update, update
-
Constructor Details
-
MinecraftDeployments
public MinecraftDeployments(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, String defaultNamespace) Creates a new MinecraftDeployments repository- Parameters:
kubernetesClient- the Kubernetes clientdefaultNamespace- 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 namespacetype- 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
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
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
-