Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RegisteredControllers contains a list of all the registered controllers // for the agent to run RegisteredControllers []Controller )
Functions ¶
func RunControllers ¶
func RunControllers() error
RunControllers run all the controller registered by the agent.
func StopControllers ¶
func StopControllers() error
StopControllers stops running all the controllers managed by API server.
Types ¶
type Controller ¶
type Controller interface {
// Configure sets up the controller
Configure()
// Run starts running the controller.
Run() error
// Stop shuts down the controller running.
Stop() error
// Name returns the name of the controller
Name() string
}
Controller is the standard interface which should be implemented by all the registered controllers.
Click to show internal directories.
Click to hide internal directories.