register

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 Interface

	Wg *wait.Group

	TracerProvider trace.TracerProvider

	RegisterResource []client.Object
}

type Creator

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

type Interface added in v1.2.1

type Interface interface {
	aliyunClient.VPC
	aliyunClient.ECS
}

Interface aliyun client for terway-controlplane

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