Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadsController ¶
type WorkloadsController struct {
// contains filtered or unexported fields
}
WorkloadsController central controller that manages the communication between the different modules
func NewController ¶
func NewController() (*WorkloadsController, error)
NewController creates a new controller and returns a pointer to the created object
func (*WorkloadsController) AddConfigMapEventHandler ¶
func (c *WorkloadsController) AddConfigMapEventHandler()
AddConfigMapEventHandler subscribes and routes the different events of interest to the ConfigMap informer
func (*WorkloadsController) AddNodeEventHandler ¶
func (c *WorkloadsController) AddNodeEventHandler()
AddNodeEventHandler subscribes and routes the different events of interest to the nodes informer
func (*WorkloadsController) AddPodEventHandler ¶
func (c *WorkloadsController) AddPodEventHandler()
AddPodEventHandler subscribes and routes the different events of interest to the pods informer
func (*WorkloadsController) CreateRunInformers ¶
func (c *WorkloadsController) CreateRunInformers()
CreateRunInformers create and run the informers in a parallel thread
func (*WorkloadsController) RunCalculationLoop ¶
func (c *WorkloadsController) RunCalculationLoop()
RunCalculationLoop Run the cluster calculation loop every minute
Click to show internal directories.
Click to hide internal directories.