Documentation ¶
Index ¶
- func CreateDedicatedGameServerCRD(dgsName string, podSpec corev1.PodSpec, portsToExpose []int32) (finalDDGSName string, err error)
- func CreateDedicatedGameServerCollectionCRD(dgsColName string, replicas int32, podSpec corev1.PodSpec) (finalDGSColName string, err error)
- func IsAPICallAuthenticated(w http.ResponseWriter, r *http.Request) (bool, error)
- type ServerActivePlayers
- type ServerHealth
- type ServerMarkedForDeletion
- type ServerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAPICallAuthenticated ¶
Types ¶
type ServerActivePlayers ¶
type ServerActivePlayers struct { ServerName string `json:"serverName"` Namespace string `json:"namespace"` PlayerCount int `json:"playerCount"` }
ServerActivePlayers is a struct that represents active sessions (connected players) per pod
type ServerHealth ¶
type ServerHealth struct { ServerName string `json:"serverName"` Namespace string `json:"namespace"` Health string `json:"health"` }
ServerHealth represents the status of the dedicated game server
type ServerMarkedForDeletion ¶
type ServerMarkedForDeletion struct { ServerName string `json:"serverName"` Namespace string `json:"namespace"` MarkedForDeletion bool `json:"markedForDeletion"` }
ServerMarkedForDeletion represents the markedForDeletion status of the dedicated game server
type ServerState ¶
type ServerState struct { ServerName string `json:"serverName"` Namespace string `json:"namespace"` State string `json:"state"` }
ServerState represents the status of the dedicated game server
Click to show internal directories.
Click to hide internal directories.