func (s telemetryReportNamespaceLister) List(selector labels.Selector) (ret []*v1.TelemetryReport, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.TelemetryReport))
	})
	return ret, err
}
List lists all TelemetryReports in the indexer for a given namespace.
package v1
import (
	v1 "github.com/contiv/vpp/plugins/crd/pkg/apis/telemetry/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type TelemetryReportLister interface {
	List(selector labels.Selector) (ret []*v1.TelemetryReport, err error)
	TelemetryReports(namespace string) TelemetryReportNamespaceLister
	TelemetryReportListerExpansion
}
type telemetryReportLister struct {
	indexer cache.Indexer
}
func NewTelemetryReportLister(indexer cache.Indexer) TelemetryReportLister {
	return &telemetryReportLister{indexer: indexer}
}
func (s *telemetryReportLister) List(selector labels.Selector) (ret []*v1.TelemetryReport, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.TelemetryReport))
	})
	return ret, err
}
func (s *telemetryReportLister) TelemetryReports(namespace string) TelemetryReportNamespaceLister {
	return telemetryReportNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type TelemetryReportNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1.TelemetryReport, err error)
	Get(name string) (*v1.TelemetryReport, error)
	TelemetryReportNamespaceListerExpansion
}
type telemetryReportNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}