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
SchedulerNames []string
WorkerNum uint32
MaxRequeueNum int
}
ControllerOption defines the options that a controller should have.
Click to show internal directories.
Click to hide internal directories.