Package dev.strela.v1
Class StrelaSdk
java.lang.Object
dev.strela.v1.StrelaSdk
-
Method Summary
Modifier and TypeMethodDescriptionstatic StrelaSdkcreate()Creates a new Strela SDKstatic StrelaSdkCreates a new Strela SDKstatic StrelaSdkCreates a new Strela SDKCompletableFuture<dev.strela.v1.MinecraftServer>
-
Method Details
-
minecraftDeployments
- Returns:
- the Minecraft deployments repository
-
minecraftStatefulSets
- Returns:
- the Minecraft stateful sets repository
-
minecraftServerSets
- Returns:
- the Minecraft server sets repository
-
minecraftServers
- Returns:
- the Minecraft servers repository
-
getCurrentMinecraftServerName
- Returns:
- the name of the current Minecraft server. If the SDK is not running in a Kubernetes pod, an IllegalStateException is thrown.
-
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 clientdefaultNamespace- the default namespace- Returns:
- the Strela SDK
-
create
Creates a new Strela SDK- Parameters:
defaultNamespace- the default namespace- Returns:
- the Strela SDK
-
create
Creates a new Strela SDK- Returns:
- the Strela SDK
-