pkg

package
v0.0.0-...-49de8f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL