func (s *endpointsLister) List(selector labels.Selector) (ret []*v1.Endpoints, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.Endpoints))
	})
	return ret, err
}
List lists all Endpoints in the indexer.
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 EndpointsLister interface {
	List(selector labels.Selector) (ret []*v1.Endpoints, err error)
	Endpoints(namespace string) EndpointsNamespaceLister
	EndpointsListerExpansion
}
type endpointsLister struct {
	indexer cache.Indexer
}
func NewEndpointsLister(indexer cache.Indexer) EndpointsLister {
	return &endpointsLister{indexer: indexer}
}