register

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 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
}

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

Jump to

Keyboard shortcuts

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