func (s *clusterMetricSinkLister) List(selector labels.Selector) (ret []*v1alpha1.ClusterMetricSink, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.ClusterMetricSink))
	})
	return ret, err
}
List lists all ClusterMetricSinks in the indexer.
package v1alpha1
import (
	v1alpha1 "github.com/knative/observability/pkg/apis/sink/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ClusterMetricSinkLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.ClusterMetricSink, err error)
	ClusterMetricSinks(namespace string) ClusterMetricSinkNamespaceLister
	ClusterMetricSinkListerExpansion
}
type clusterMetricSinkLister struct {
	indexer cache.Indexer
}
func NewClusterMetricSinkLister(indexer cache.Indexer) ClusterMetricSinkLister {
	return &clusterMetricSinkLister{indexer: indexer}
}