func (s *priorityClassLister) List(selector labels.Selector) (ret []*v1.PriorityClass, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.PriorityClass))
	})
	return ret, err
}
List lists all PriorityClasses in the indexer.
package v1
import (
	v1 "k8s.io/api/scheduling/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type PriorityClassLister interface {
	List(selector labels.Selector) (ret []*v1.PriorityClass, err error)
	Get(name string) (*v1.PriorityClass, error)
	PriorityClassListerExpansion
}
type priorityClassLister struct {
	indexer cache.Indexer
}
func NewPriorityClassLister(indexer cache.Indexer) PriorityClassLister {
	return &priorityClassLister{indexer: indexer}
}