func (s *throttleLister) Throttles(namespace string) ThrottleNamespaceLister {
	return throttleNamespaceLister{indexer: s.indexer, namespace: namespace}
}
Throttles returns an object that can list and get Throttles.
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 ThrottleLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Throttle, err error)
	Throttles(namespace string) ThrottleNamespaceLister
	ThrottleListerExpansion
}
type throttleLister struct {
	indexer cache.Indexer
}
func NewThrottleLister(indexer cache.Indexer) ThrottleLister {
	return &throttleLister{indexer: indexer}
}
func (s *throttleLister) List(selector labels.Selector) (ret []*v1alpha1.Throttle, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Throttle))
	})
	return ret, err
}