controllermap

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	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