shared

package
v3.6.113-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package shared provides reusable support for shared informer implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInformerFactory

func NewInformerFactory(
	internalKubeInformers kinternalinformers.SharedInformerFactory,
	kubeInformers kinformers.SharedInformerFactory,
	kubeClient kclientset.Interface,
	originClient oclient.Interface,
	customListerWatchers ListerWatcherOverrides,
	defaultResync time.Duration,
) *sharedInformerFactory

Types

type BuildConfigInformer added in v1.4.0

type BuildConfigInformer interface {
	Informer() cache.SharedIndexInformer
	Indexer() cache.Indexer
	Lister() oscache.StoreToBuildConfigLister
}

type BuildInformer

type BuildInformer interface {
	Informer() cache.SharedIndexInformer
	Indexer() cache.Indexer
	Lister() *oscache.StoreToBuildLister
}

type DefaultListerWatcherOverrides

type DefaultListerWatcherOverrides map[schema.GroupResource]cache.ListerWatcher

func (DefaultListerWatcherOverrides) GetListerWatcher

type InformerFactory

type InformerFactory interface {
	// Start starts informers that can start AFTER the API server and controllers have started
	Start(stopCh <-chan struct{})

	ForResource(resource schema.GroupVersionResource) (kinformers.GenericInformer, error)

	BuildConfigs() BuildConfigInformer
	Builds() BuildInformer
	SecurityContextConstraints() SecurityContextConstraintsInformer

	KubernetesInformers() kinformers.SharedInformerFactory
	InternalKubernetesInformers() kinternalinformers.SharedInformerFactory
}

type ListerWatcherOverrides

type ListerWatcherOverrides interface {
	// GetListerWatcher returns back a ListerWatcher for a given resource or nil if
	// no particular ListerWatcher was specified for the type
	GetListerWatcher(resource schema.GroupResource) cache.ListerWatcher
}

ListerWatcherOverrides allows a caller to specify special behavior for particular ListerWatchers For instance, authentication and authorization types need to go direct to etcd, not through an API server

type SecurityContextConstraintsInformer

type SecurityContextConstraintsInformer interface {
	Informer() cache.SharedIndexInformer
	Indexer() cache.Indexer
	Lister() *oscache.IndexerToSecurityContextConstraintsLister
}

Jump to

Keyboard shortcuts

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