Documentation ¶
Index ¶
Constants ¶
View Source
const (
AllNamespaces = ""
)
AllNamespaces as our controller will be looking for events in all namespaces
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller for checking events with their specific actions
func NewController ¶
func NewController(clientset clientset.Interface, controllerConfig config.Controller) (*Controller, error)
NewController for initializing a Controller
func (*Controller) Add ¶
func (c *Controller) Add(obj interface{})
Add function to add a 'create' event to the queue in case of creating a pod
func (*Controller) Delete ¶
func (c *Controller) Delete(obj interface{})
Delete function to add a 'delete' event to the queue in case of deleting a pod
func (*Controller) Run ¶
func (c *Controller) Run(threadiness int, stopCh chan struct{})
Run function for controller which handles the queue
func (*Controller) Update ¶
func (c *Controller) Update(old interface{}, new interface{})
Update function to add an 'update' event to the queue in case of updating a pod
Click to show internal directories.
Click to hide internal directories.