framework

package
v0.0.0-...-3bd4b24 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForeachController

func ForeachController(fn func(controller Controller))

ForeachController executes fn for each controller.

func RegisterController

func RegisterController(controller Controller) error

RegisterController add controller to the global variable controllers.

Types

type Controller

type Controller interface {
	Name() string
	Initialize(opt *ControllerOption) error
	Run(stopCh <-chan struct{})
}

Controller is the interface of all controllers of the apis in volcano.

type ControllerOption

type ControllerOption struct {
	KubeClient            kubernetes.Interface
	VolcanoClient         volcanoclient.Interface
	SharedInformerFactory informers.SharedInformerFactory
	SchedulerNames        []string
	WorkerNum             uint32
	MaxRequeueNum         int
}

ControllerOption defines the options that a controller should have.

Jump to

Keyboard shortcuts

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