Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) CreateGameServerSet(gss *gameKruiseV1alpha1.GameServerSet) (*gameKruiseV1alpha1.GameServerSet, error)
- func (client *Client) CreateNamespace() error
- func (client *Client) DefaultGameServerSet() *gameKruiseV1alpha1.GameServerSet
- func (client *Client) DeleteGameServerSet() error
- func (client *Client) DeleteNamespace() error
- func (client *Client) DeletePod(podName string) error
- func (client *Client) GetGameServer(gsName string) (*gameKruiseV1alpha1.GameServer, error)
- func (client *Client) GetGameServerList(labelSelector string) (*gameKruiseV1alpha1.GameServerList, error)
- func (client *Client) GetGameServerSet() (*gameKruiseV1alpha1.GameServerSet, error)
- func (client *Client) GetPod(podName string) (*corev1.Pod, error)
- func (client *Client) GetPodList(labelSelector string) (*corev1.PodList, error)
- func (client *Client) PatchGameServer(gsName string, data []byte) (*gameKruiseV1alpha1.GameServer, error)
- func (client *Client) PatchGameServerSet(data []byte) (*gameKruiseV1alpha1.GameServerSet, error)
- func (client *Client) UpdateGameServerSet(gss *gameKruiseV1alpha1.GameServerSet) (*gameKruiseV1alpha1.GameServerSet, error)
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) DefaultGameServerSet ¶
func (client *Client) DefaultGameServerSet() *gameKruiseV1alpha1.GameServerSet
func (*Client) DeleteGameServerSet ¶
func (*Client) DeleteNamespace ¶
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) GetPodList ¶
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)
Click to show internal directories.
Click to hide internal directories.