register

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Controllers = map[string]struct {
	Creator Creator
	Enable  bool
}{}

Controllers collect for all controller

Functions

func Add

func Add(name string, creator Creator, enable bool)

Add add controller by name

Types

type ControllerCtx added in v1.3.0

type ControllerCtx struct {
	context.Context

	Config       *controlplane.Config
	VSwitchPool  *vswitch.SwitchPool
	AliyunClient aliyunClient.OpenAPI

	Wg *wait.Group

	TracerProvider trace.TracerProvider

	RegisterResource []client.Object

	NodeStatusCache *status.Cache[status.NodeStatus]

	DirectClient client.Client
}

type Creator

type Creator func(mgr manager.Manager, ctrlCtx *ControllerCtx) error

Directories

Path Synopsis
Package all register all controllers
Package all register all controllers
multi-ip
pod

Jump to

Keyboard shortcuts

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