{"modulePath":"github.1git.de/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shared\n\nPackage shared provides reusable support for shared informer implementations.\n\n## Types\n\n```go\ntype BuildConfigInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() oscache.StoreToBuildConfigLister\n}\n```\n\n```go\ntype ClusterPolicyBindingInformer interface {\n\tInformer() cache.SharedIndexInformer\n\t// still use an indexer, no telling what someone will want to index on someday\n\tIndexer() cache.Indexer\n\tLister() client.SyncedClusterPolicyBindingsListerInterface\n}\n```\n\n```go\ntype ClusterPolicyInformer interface {\n\tInformer() cache.SharedIndexInformer\n\t// still use an indexer, no telling what someone will want to index on someday\n\tIndexer() cache.Indexer\n\tLister() client.SyncedClusterPoliciesListerInterface\n}\n```\n\n```go\ntype ClusterResourceQuotaInformer interface {\n\tInformer() cache.SharedIndexInformer\n\t// still use an indexer, no telling what someone will want to index on someday\n\tIndexer() cache.Indexer\n\tLister() *ocache.IndexerToClusterResourceQuotaLister\n}\n```\n\n```go\ntype DefaultListerWatcherOverrides map[unversioned.GroupResource]cache.ListerWatcher\n```\n\n```go\nfunc (o DefaultListerWatcherOverrides) GetListerWatcher(resource unversioned.GroupResource) cache.ListerWatcher\n```\n\n```go\ntype DeploymentConfigInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *oscache.StoreToDeploymentConfigLister\n}\n```\n\n```go\ntype ImageStreamInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *oscache.StoreToImageStreamLister\n}\n```\n\n```go\ntype InformerFactory interface {\n\t// Start starts informers that can start AFTER the API server and controllers have started\n\tStart(stopCh \u003c-chan struct{})\n\t// StartCore starts core informers that must initialize in order for the API server to start\n\tStartCore(stopCh \u003c-chan struct{})\n\n\tClusterPolicies() ClusterPolicyInformer\n\tClusterPolicyBindings() ClusterPolicyBindingInformer\n\tPolicies() PolicyInformer\n\tPolicyBindings() PolicyBindingInformer\n\n\tDeploymentConfigs() DeploymentConfigInformer\n\tBuildConfigs() BuildConfigInformer\n\tImageStreams() ImageStreamInformer\n\tSecurityContextConstraints() SecurityContextConstraintsInformer\n\tClusterResourceQuotas() ClusterResourceQuotaInformer\n\n\tKubernetesInformers() informers.SharedInformerFactory\n\n\t// TODO switch to the generated upstream informers once the kube 1.6 rebase is\n\t// in\n\tReplicationControllers() ReplicationControllerInformer\n}\n```\n\n```go\nfunc NewInformerFactory(kubeInformers informers.SharedInformerFactory, kubeClient kclientset.Interface, originClient oclient.Interface, customListerWatchers ListerWatcherOverrides, defaultResync time.Duration) InformerFactory\n```\n\n```go\ntype ListerWatcherOverrides interface {\n\t// GetListerWatcher returns back a ListerWatcher for a given resource or nil if\n\t// no particular ListerWatcher was specified for the type\n\tGetListerWatcher(resource unversioned.GroupResource) cache.ListerWatcher\n}\n```\nListerWatcherOverrides 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\n\n```go\ntype PolicyBindingInformer interface {\n\tInformer() cache.SharedIndexInformer\n\t// still use an indexer, no telling what someone will want to index on someday\n\tIndexer() cache.Indexer\n\tLister() client.SyncedPolicyBindingsListerNamespacer\n}\n```\n\n```go\ntype PolicyInformer interface {\n\tInformer() cache.SharedIndexInformer\n\t// still use an indexer, no telling what someone will want to index on someday\n\tIndexer() cache.Indexer\n\tLister() client.SyncedPoliciesListerNamespacer\n}\n```\n\n```go\ntype ReplicationControllerInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *cache.StoreToReplicationControllerLister\n}\n```\n\n```go\ntype SecurityContextConstraintsInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *oscache.IndexerToSecurityContextConstraintsLister\n}\n```\n\n","path":"github.1git.de/openshift/origin/pkg/controller/shared","name":"shared","synopsis":"Package shared provides reusable support for shared informer implementations.","isRedistributable":true}
