code: func (s *priorityClassLister) List(selector labels.Selector) (ret []*v1beta1.PriorityClass, err error) {
  	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
  		ret = append(ret, m.(*v1beta1.PriorityClass))
  	})
  	return ret, err
  }
docs: // List lists all PriorityClasses in the indexer.