func (s *targetLister) List(selector labels.Selector) (ret []*v1alpha1.Target, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Target))
	})
	return ret, err
}
List lists all Targets in the indexer.
package v1alpha1
import (
	v1alpha1 "admiralty.io/multicluster-scheduler/pkg/apis/multicluster/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type TargetLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Target, err error)
	Targets(namespace string) TargetNamespaceLister
	TargetListerExpansion
}
type targetLister struct {
	indexer cache.Indexer
}
func NewTargetLister(indexer cache.Indexer) TargetLister {
	return &targetLister{indexer: indexer}
}