func (s scaleNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Scale, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.Scale))
	})
	return ret, err
}
List lists all Scales in the indexer for a given namespace.
package v1beta1
import (
	v1beta1 "k8s.io/api/extensions/v1beta1"
	"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 []*v1beta1.Scale, err error)
	Scales(namespace string) ScaleNamespaceLister
	ScaleListerExpansion
}
type scaleLister struct {
	indexer cache.Indexer
}
func NewScaleLister(indexer cache.Indexer) ScaleLister {
	return &scaleLister{indexer: indexer}
}
func (s *scaleLister) List(selector labels.Selector) (ret []*v1beta1.Scale, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.Scale))
	})
	return ret, err
}
func (s *scaleLister) Scales(namespace string) ScaleNamespaceLister {
	return scaleNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type ScaleNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta1.Scale, err error)
	Get(name string) (*v1beta1.Scale, error)
	ScaleNamespaceListerExpansion
}
type scaleNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}