client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace         = "e2e-test"
	GameServerSet     = "default-gss"
	GameContainerName = "default-game"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewKubeClient

func NewKubeClient(kruisegameClient kruisegameclientset.Interface, kubeClint clientset.Interface) *Client

func (*Client) CreateGameServerSet

func (client *Client) CreateGameServerSet(gss *gameKruiseV1alpha1.GameServerSet) (*gameKruiseV1alpha1.GameServerSet, error)

func (*Client) CreateNamespace

func (client *Client) CreateNamespace() error

func (*Client) DefaultGameServerSet

func (client *Client) DefaultGameServerSet() *gameKruiseV1alpha1.GameServerSet

func (*Client) DeleteGameServerSet

func (client *Client) DeleteGameServerSet() error

func (*Client) DeleteNamespace

func (client *Client) DeleteNamespace() error

func (*Client) DeletePod

func (client *Client) DeletePod(podName string) error

func (*Client) GetGameServer

func (client *Client) GetGameServer(gsName string) (*gameKruiseV1alpha1.GameServer, error)

func (*Client) GetGameServerList

func (client *Client) GetGameServerList(labelSelector string) (*gameKruiseV1alpha1.GameServerList, error)

func (*Client) GetGameServerSet

func (client *Client) GetGameServerSet() (*gameKruiseV1alpha1.GameServerSet, error)

func (*Client) GetPod

func (client *Client) GetPod(podName string) (*corev1.Pod, error)

func (*Client) GetPodList

func (client *Client) GetPodList(labelSelector string) (*corev1.PodList, error)

func (*Client) PatchGameServer

func (client *Client) PatchGameServer(gsName string, data []byte) (*gameKruiseV1alpha1.GameServer, error)

func (*Client) PatchGameServerSet

func (client *Client) PatchGameServerSet(data []byte) (*gameKruiseV1alpha1.GameServerSet, error)

func (*Client) UpdateGameServerSet

func (client *Client) UpdateGameServerSet(gss *gameKruiseV1alpha1.GameServerSet) (*gameKruiseV1alpha1.GameServerSet, error)

Jump to

Keyboard shortcuts

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