controllermap

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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

Get - Returns a ControllerMapContents given a GVK as the key. `ok` determines if the key exists

func (*ControllerMap) Store

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

func (*UIDMap) Delete

func (um *UIDMap) Delete(key types.UID)

Delete - Deletes associated UID to NamespacedName mapping

func (*UIDMap) Get

func (um *UIDMap) Get(key types.UID) (value types.NamespacedName, ok bool)

Get - Returns a NamespacedName of the owner given a UID

func (*UIDMap) Store

func (um *UIDMap) Store(key types.UID, value types.NamespacedName)

Store - Adds a new UID to NamespacedName 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL