func (s controllerRevisionNamespaceLister) List(selector labels.Selector) (ret []*v1beta2.ControllerRevision, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta2.ControllerRevision))
	})
	return ret, err
}
List lists all ControllerRevisions in the indexer for a given namespace.
package v1beta2
import (
	v1beta2 "k8s.io/api/apps/v1beta2"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ControllerRevisionLister interface {
	List(selector labels.Selector) (ret []*v1beta2.ControllerRevision, err error)
	ControllerRevisions(namespace string) ControllerRevisionNamespaceLister
	ControllerRevisionListerExpansion
}
type controllerRevisionLister struct {
	indexer cache.Indexer
}
func NewControllerRevisionLister(indexer cache.Indexer) ControllerRevisionLister {
	return &controllerRevisionLister{indexer: indexer}
}
func (s *controllerRevisionLister) List(selector labels.Selector) (ret []*v1beta2.ControllerRevision, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta2.ControllerRevision))
	})
	return ret, err
}
func (s *controllerRevisionLister) ControllerRevisions(namespace string) ControllerRevisionNamespaceLister {
	return controllerRevisionNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type ControllerRevisionNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta2.ControllerRevision, err error)
	Get(name string) (*v1beta2.ControllerRevision, error)
	ControllerRevisionNamespaceListerExpansion
}
type controllerRevisionNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}