func (s *roleBindingLister) List(selector labels.Selector) (ret []*v1beta1.RoleBinding, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.RoleBinding))
	})
	return ret, err
}
List lists all RoleBindings in the indexer.
package v1beta1
import (
	v1beta1 "k8s.io/api/rbac/v1beta1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type RoleBindingLister interface {
	List(selector labels.Selector) (ret []*v1beta1.RoleBinding, err error)
	RoleBindings(namespace string) RoleBindingNamespaceLister
	RoleBindingListerExpansion
}
type roleBindingLister struct {
	indexer cache.Indexer
}
func NewRoleBindingLister(indexer cache.Indexer) RoleBindingLister {
	return &roleBindingLister{indexer: indexer}
}