func (s cronJobNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.CronJob, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.CronJob))
	})
	return ret, err
}
List lists all CronJobs in the indexer for a given namespace.
package v1beta1
import (
	v1beta1 "k8s.io/api/batch/v1beta1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type CronJobLister interface {
	List(selector labels.Selector) (ret []*v1beta1.CronJob, err error)
	CronJobs(namespace string) CronJobNamespaceLister
	CronJobListerExpansion
}
type cronJobLister struct {
	indexer cache.Indexer
}
func NewCronJobLister(indexer cache.Indexer) CronJobLister {
	return &cronJobLister{indexer: indexer}
}
func (s *cronJobLister) List(selector labels.Selector) (ret []*v1beta1.CronJob, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.CronJob))
	})
	return ret, err
}
func (s *cronJobLister) CronJobs(namespace string) CronJobNamespaceLister {
	return cronJobNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type CronJobNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta1.CronJob, err error)
	Get(name string) (*v1beta1.CronJob, error)
	CronJobNamespaceListerExpansion
}
type cronJobNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}