func (s revisionNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Revision, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.Revision))
	})
	return ret, err
}
List lists all Revisions in the indexer for a given namespace.
package v1beta1
import (
	v1beta1 "cellery.io/cellery-controller/pkg/apis/knative/serving/v1beta1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type RevisionLister interface {
	List(selector labels.Selector) (ret []*v1beta1.Revision, err error)
	Revisions(namespace string) RevisionNamespaceLister
	RevisionListerExpansion
}
type revisionLister struct {
	indexer cache.Indexer
}
func NewRevisionLister(indexer cache.Indexer) RevisionLister {
	return &revisionLister{indexer: indexer}
}
func (s *revisionLister) List(selector labels.Selector) (ret []*v1beta1.Revision, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.Revision))
	})
	return ret, err
}
func (s *revisionLister) Revisions(namespace string) RevisionNamespaceLister {
	return revisionNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type RevisionNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta1.Revision, err error)
	Get(name string) (*v1beta1.Revision, error)
	RevisionNamespaceListerExpansion
}
type revisionNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}