controller

package
v1.25.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 12 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 controller for controlling reconciler life cycle

func NewController

func NewController(ops *config.SyncOption,
	serverInfo *types.ServerInfo,
	disc *discovery.Client,
	storageClient storage.Interface,
	cmdbClient cmdb.ClientInterface,
	informer *taskinformer.Informer,
	manager *taskmanager.Manager) *Controller

NewController create controller

func (*Controller) OnAdd

func (c *Controller) OnAdd(add common.Cluster)

OnAdd implements informer event handler

func (*Controller) OnDelete

func (c *Controller) OnDelete(del common.Cluster)

OnDelete implements informer event handler

func (*Controller) OnUpdate

func (c *Controller) OnUpdate(old, new common.Cluster)

OnUpdate implements informer event handler

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

Run run the controller

Jump to

Keyboard shortcuts

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