Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 *ControllerMapContents, 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 *ControllerMapContents)
Store - Adds a new GVK to controller mapping
type ControllerMapContents ¶
type ControllerMapContents struct { Controller controller.Controller WatchDependentResources bool WatchClusterScopedResources bool WatchMap *WatchMap UIDMap *UIDMap }
ControllerMapContents- Contains internal data associated with each controller
type UIDMap ¶
type UIDMap struct {
// contains filtered or unexported fields
}
UIDMap - map of UID to namespaced name of owner
func NewUIDMap ¶
func NewUIDMap() *UIDMap
NewUIDMap - returns a new object that maps UID to namespaced name of owner
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