func (l *summaryLister) List(selector labels.Selector) (ret []*summary.SummarizedObject, err error) {
	err = cache.ListAll(l.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*summary.SummarizedObject))
	})
	return ret, err
}
List lists all resources in the indexer.
package lister
import (
	"github.com/rancher/wrangler/pkg/summary"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/apimachinery/pkg/runtime/schema"
	"k8s.io/client-go/tools/cache"
)
var _ Lister = &summaryLister{}
var _ NamespaceLister = &summaryNamespaceLister{}
type summaryLister struct {
	indexer cache.Indexer
	gvr     schema.GroupVersionResource
}
func New(indexer cache.Indexer, gvr schema.GroupVersionResource) Lister {
	return &summaryLister{indexer: indexer, gvr: gvr}
}