func (s cellNamespaceLister) Get(name string) (*v1alpha2.Cell, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1alpha2.Resource("cell"), name)
	}
	return obj.(*v1alpha2.Cell), nil
}
Get retrieves the Cell from the indexer for a given namespace and name.
package v1alpha2
import (
	v1alpha2 "cellery.io/cellery-controller/pkg/apis/mesh/v1alpha2"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type CellLister interface {
	List(selector labels.Selector) (ret []*v1alpha2.Cell, err error)
	Cells(namespace string) CellNamespaceLister
	CellListerExpansion
}
type cellLister struct {
	indexer cache.Indexer
}
func NewCellLister(indexer cache.Indexer) CellLister {
	return &cellLister{indexer: indexer}
}
func (s *cellLister) List(selector labels.Selector) (ret []*v1alpha2.Cell, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha2.Cell))
	})
	return ret, err
}
func (s *cellLister) Cells(namespace string) CellNamespaceLister {
	return cellNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type CellNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha2.Cell, err error)
	Get(name string) (*v1alpha2.Cell, error)
	CellNamespaceListerExpansion
}
type cellNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s cellNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Cell, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha2.Cell))
	})
	return ret, err
}