{"modulePath":"github.com/ncdc/origin","version":"v0.0.0-20170522141006-b8a4a2cc86c2","isLatest":true,"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 BuildInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *oscache.StoreToBuildLister\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[schema.GroupResource]cache.ListerWatcher\n```\n\n```go\nfunc (o DefaultListerWatcherOverrides) GetListerWatcher(resource schema.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\tTemplates() TemplateInformer\n\tBuilds() BuildInformer\n\tImageStreams() ImageStreamInformer\n\tSecurityContextConstraints() SecurityContextConstraintsInformer\n\tClusterResourceQuotas() ClusterResourceQuotaInformer\n\n\tKubernetesInformers() kinformers.SharedInformerFactory\n\tInternalKubernetesInformers() kinternalinformers.SharedInformerFactory\n}\n```\n\n```go\nfunc NewInformerFactory(\n\tinternalKubeInformers kinternalinformers.SharedInformerFactory,\n\tkubeInformers kinformers.SharedInformerFactory,\n\tkubeClient kclientset.Interface,\n\toriginClient oclient.Interface,\n\tcustomListerWatchers ListerWatcherOverrides,\n\tdefaultResync time.Duration,\n) 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 schema.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 SecurityContextConstraintsInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() *oscache.IndexerToSecurityContextConstraintsLister\n}\n```\n\n```go\ntype TemplateInformer interface {\n\tInformer() cache.SharedIndexInformer\n\tIndexer() cache.Indexer\n\tLister() oscache.StoreToTemplateLister\n}\n```\n\n","path":"github.com/ncdc/origin/pkg/controller/shared","name":"shared","synopsis":"Package shared provides reusable support for shared informer implementations.","isRedistributable":true}
