func (s nuclioAPIGatewayNamespaceLister) Get(name string) (*v1beta1.NuclioAPIGateway, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1beta1.Resource("nuclioapigateway"), name)
	}
	return obj.(*v1beta1.NuclioAPIGateway), nil
}
Get retrieves the NuclioAPIGateway from the indexer for a given namespace and name.
package v1beta1
import (
	v1beta1 "github.com/nuclio/nuclio/pkg/platform/kube/apis/nuclio.io/v1beta1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type NuclioAPIGatewayLister interface {
	List(selector labels.Selector) (ret []*v1beta1.NuclioAPIGateway, err error)
	NuclioAPIGateways(namespace string) NuclioAPIGatewayNamespaceLister
	NuclioAPIGatewayListerExpansion
}
type nuclioAPIGatewayLister struct {
	indexer cache.Indexer
}
func NewNuclioAPIGatewayLister(indexer cache.Indexer) NuclioAPIGatewayLister {
	return &nuclioAPIGatewayLister{indexer: indexer}
}
func (s *nuclioAPIGatewayLister) List(selector labels.Selector) (ret []*v1beta1.NuclioAPIGateway, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.NuclioAPIGateway))
	})
	return ret, err
}
func (s *nuclioAPIGatewayLister) NuclioAPIGateways(namespace string) NuclioAPIGatewayNamespaceLister {
	return nuclioAPIGatewayNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type NuclioAPIGatewayNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1beta1.NuclioAPIGateway, err error)
	Get(name string) (*v1beta1.NuclioAPIGateway, error)
	NuclioAPIGatewayNamespaceListerExpansion
}
type nuclioAPIGatewayNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s nuclioAPIGatewayNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.NuclioAPIGateway, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.NuclioAPIGateway))
	})
	return ret, err
}