func (s podNamespaceLister) List(selector labels.Selector) (ret []*v1.Pod, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.Pod))
	})
	return ret, err
}
List lists all Pods in the indexer for a given namespace.
package v1
import (
	v1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type PodLister interface {
	List(selector labels.Selector) (ret []*v1.Pod, err error)
	Pods(namespace string) PodNamespaceLister
	PodListerExpansion
}
type podLister struct {
	indexer cache.Indexer
}
func NewPodLister(indexer cache.Indexer) PodLister {
	return &podLister{indexer: indexer}
}
func (s *podLister) List(selector labels.Selector) (ret []*v1.Pod, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.Pod))
	})
	return ret, err
}
func (s *podLister) Pods(namespace string) PodNamespaceLister {
	return podNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type PodNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1.Pod, err error)
	Get(name string) (*v1.Pod, error)
	PodNamespaceListerExpansion
}
type podNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}