controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is a the main GameServer crd controller

func NewController

func NewController(
	namespace, name string,
	kubeClient kubernetes.Interface,
	carrierClient versioned.Interface,
	gameServerInformer v1alpha1.GameServerInformer,
	sendChan chan *sdkapi.GameServer) *Controller

NewController returns a new GameServer crd controller

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{}) error

Run starts the controller.

func (*Controller) SetNotifyFunc

func (c *Controller) SetNotifyFunc(setCondition f)

SetNotifyFunc set the notification func name. This should be called when notify func is ready.

Jump to

Keyboard shortcuts

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