func (s *scaleLister) List(selector labels.Selector) (ret []*v1beta2.Scale, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta2.Scale))
	})
	return ret, err
}
List lists all Scales in the indexer.
package v1beta2
import (
	v1beta2 "k8s.io/api/apps/v1beta2"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ScaleLister interface {
	List(selector labels.Selector) (ret []*v1beta2.Scale, err error)
	Scales(namespace string) ScaleNamespaceLister
	ScaleListerExpansion
}
type scaleLister struct {
	indexer cache.Indexer
}
func NewScaleLister(indexer cache.Indexer) ScaleLister {
	return &scaleLister{indexer: indexer}
}