func NewFilteredRuntimeClassInformer()

in pkg/client/informers/externalversions/node/v1alpha1/runtimeclass.go [56:76]


func NewFilteredRuntimeClassInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
	return cache.NewSharedIndexInformer(
		&cache.ListWatch{
			ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.NodeV1alpha1().RuntimeClasses().List(options)
			},
			WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.NodeV1alpha1().RuntimeClasses().Watch(options)
			},
		},
		&nodev1alpha1.RuntimeClass{},
		resyncPeriod,
		indexers,
	)
}