func (s *clusterThrottleLister) List(selector labels.Selector) (ret []*v1alpha1.ClusterThrottle, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.ClusterThrottle))
	})
	return ret, err
}
List lists all ClusterThrottles in the indexer.
package v1alpha1
import (
	v1alpha1 "github.com/everpeace/kube-throttler/pkg/apis/schedule/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ClusterThrottleLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.ClusterThrottle, err error)
	Get(name string) (*v1alpha1.ClusterThrottle, error)
	ClusterThrottleListerExpansion
}
type clusterThrottleLister struct {
	indexer cache.Indexer
}
func NewClusterThrottleLister(indexer cache.Indexer) ClusterThrottleLister {
	return &clusterThrottleLister{indexer: indexer}
}