code: func (s fooNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Foo, err error) {
  	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
  		ret = append(ret, m.(*v1alpha1.Foo))
  	})
  	return ret, err
  }
docs: // List lists all Foos in the indexer for a given namespace.