Documentation
¶
Index ¶
Constants ¶
View Source
const ( // GAMESERVE_PROBE_LABEL ... GAMESERVE_PROBE_LABEL = "game.kruise.io/vke-probe-enabled" // GMAESERVER_PROBE_PORT_LABEL ... GMAESERVER_PROBE_PORT_LABEL = "game.kruise.io/vke-probe-port" // GAMESERVER_WANT_RESP ... GAMESERVER_WANT_RESP = "game.kruise.io/vke-want-resp" // GAMESERVER_NAMESPACE ... GAMESERVER_NAMESPACE = "default" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GamePatcher ¶
type GamePatcher interface { // PatchGameServer patches the game server status PatchGameServer(ctx context.Context, gs *v1alpha1.GameServer) error ListGameServersByProbeLabel(ctx context.Context) (*v1alpha1.GameServerList, error) GetGameServer(ctx context.Context, gsName, namespace string) (*v1alpha1.GameServer, error) }
func NewGamePatcher ¶
func NewGamePatcher(kubeClientset *kubernetes.Clientset, okgClientset *kruisegameclientset.Clientset) GamePatcher
Click to show internal directories.
Click to hide internal directories.