register

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 4 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 {
	Config         *controlplane.Config
	VSwitchPool    *vswitch.SwitchPool
	AliyunClient   Interface
	DelegateClient Interface
}

type Creator

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

type Interface added in v1.2.1

type Interface interface {
	client.VPC
	client.ECS
}

Interface aliyun client for terway-controlplane

Directories

Path Synopsis
Package all register all controllers
Package all register all controllers

Jump to

Keyboard shortcuts

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