informers

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

The informers defines a registry for sharing informers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InformerGetter

type InformerGetter interface {
	GetInformer(object metav1.Object) cache.SharedInformer
}

type InformerProvider

type InformerProvider interface {
	Informer() cache.SharedIndexInformer
}

type InformerRegistry

type InformerRegistry map[string]InformerProvider

InformerRegistry contains a map of

func (InformerRegistry) Get

Get gets an SharedInformer from the Map

func (InformerRegistry) GetInformerProvider

func (im InformerRegistry) GetInformerProvider(object metav1.Object) InformerProvider

func (InformerRegistry) Insert

func (im InformerRegistry) Insert(object metav1.Object, informerprovider InformerProvider) error

Insert adds an SharedInformer to the Map

func (InformerRegistry) RunAll

func (im InformerRegistry) RunAll(stop <-chan struct{})

RunAll runs all of the shared informers

Jump to

Keyboard shortcuts

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