func NewFilteredWarmImageInformer(client versioned.Interface, namespace string, 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.MattmoorV2().WarmImages(namespace).List(options)
			},
			WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
				if tweakListOptions != nil {
					tweakListOptions(&options)
				}
				return client.MattmoorV2().WarmImages(namespace).Watch(options)
			},
		},
		&warmimage_v2.WarmImage{},
		resyncPeriod,
		indexers,
	)
}
NewFilteredWarmImageInformer constructs a new informer for WarmImage type.
Always prefer using an informer factory to get a shared informer instead of getting an independent
one. This reduces memory footprint and number of connections to the server.
package v2
import (
	time "time"
	warmimage_v2 "github.com/mattmoor/warm-image/pkg/apis/warmimage/v2"
	versioned "github.com/mattmoor/warm-image/pkg/client/clientset/versioned"
	internalinterfaces "github.com/mattmoor/warm-image/pkg/client/informers/externalversions/internalinterfaces"
	v2 "github.com/mattmoor/warm-image/pkg/client/listers/warmimage/v2"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	runtime "k8s.io/apimachinery/pkg/runtime"
	watch "k8s.io/apimachinery/pkg/watch"
	cache "k8s.io/client-go/tools/cache"
)
type WarmImageInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() v2.WarmImageLister
}
type warmImageInformer struct {
	factory          internalinterfaces.SharedInformerFactory
	tweakListOptions internalinterfaces.TweakListOptionsFunc
	namespace        string
}
func NewWarmImageInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
	return NewFilteredWarmImageInformer(client, namespace, resyncPeriod, indexers, nil)
}