func NewEndpointsLister(indexer cache.Indexer) EndpointsLister {
	return &endpointsLister{indexer: indexer}
}
NewEndpointsLister returns a new EndpointsLister.
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
}