controllermap

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contents added in v0.7.0

type Contents struct {
	Controller                  controller.Controller
	WatchDependentResources     bool
	WatchClusterScopedResources bool
	OwnerWatchMap               *WatchMap
	AnnotationWatchMap          *WatchMap
	Blacklist                   map[schema.GroupVersionKind]bool
}

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, blacklist []schema.GroupVersionKind)

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

Jump to

Keyboard shortcuts

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