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
}
List lists all NuclioAPIGateways in the indexer for a given namespace.
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
}