Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contents ¶
type Contents struct { Controller controller.Controller WatchDependentResources bool WatchClusterScopedResources bool OwnerWatchMap *WatchMap AnnotationWatchMap *WatchMap }
Contents - Contains internal data associated with each controller
type ControllerMap ¶
type ControllerMap struct {
// contains filtered or unexported fields
}
ControllerMap - map of GVK to ControllerMapContents
func NewControllerMap ¶
func NewControllerMap() *ControllerMap
NewControllerMap returns a new object that contains a mapping between GVK and ControllerMapContents object
func (*ControllerMap) Delete ¶
func (cm *ControllerMap) Delete(key schema.GroupVersionKind)
Delete - Deletes associated GVK to controller mapping from the ControllerMap
func (*ControllerMap) Get ¶
func (cm *ControllerMap) Get(key schema.GroupVersionKind) (value *Contents, ok bool)
Get - Returns a ControllerMapContents given a GVK as the key. `ok` determines if the key exists
func (*ControllerMap) Store ¶
func (cm *ControllerMap) Store(key schema.GroupVersionKind, value *Contents)
Store - Adds a new GVK to controller mapping
type WatchMap ¶
type WatchMap struct {
// contains filtered or unexported fields
}
WatchMap - map of GVK to interface. Determines if resource is being watched already
func NewWatchMap ¶
func NewWatchMap() *WatchMap
NewWatchMap - returns a new object that maps GVK to interface to determine if resource is being watched
func (*WatchMap) Delete ¶
func (wm *WatchMap) Delete(key schema.GroupVersionKind)
Delete - Deletes associated watches for a specific GVK
func (*WatchMap) Get ¶
func (wm *WatchMap) Get(key schema.GroupVersionKind) (value interface{}, ok bool)
Get - Checks if GVK is already watched
func (*WatchMap) Store ¶
func (wm *WatchMap) Store(key schema.GroupVersionKind)
Store - Adds a new GVK to be watched