func (s *metaRouterLister) List(selector labels.Selector) (ret []*v1alpha1.MetaRouter, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.MetaRouter))
	})
	return ret, err
}
List lists all MetaRouters in the indexer.
package v1alpha1
import (
	v1alpha1 "github.com/aeraki-framework/aeraki/client-go/pkg/apis/metaprotocol/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type MetaRouterLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.MetaRouter, err error)
	MetaRouters(namespace string) MetaRouterNamespaceLister
	MetaRouterListerExpansion
}
type metaRouterLister struct {
	indexer cache.Indexer
}
func NewMetaRouterLister(indexer cache.Indexer) MetaRouterLister {
	return &metaRouterLister{indexer: indexer}
}