func (s *arangoDeploymentLister) List(selector labels.Selector) (ret []*v2alpha1.ArangoDeployment, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v2alpha1.ArangoDeployment))
	})
	return ret, err
}
List lists all ArangoDeployments in the indexer.
package v2alpha1
import (
	v2alpha1 "github.com/arangodb/kube-arangodb/pkg/apis/deployment/v2alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ArangoDeploymentLister interface {
	List(selector labels.Selector) (ret []*v2alpha1.ArangoDeployment, err error)
	ArangoDeployments(namespace string) ArangoDeploymentNamespaceLister
	ArangoDeploymentListerExpansion
}
type arangoDeploymentLister struct {
	indexer cache.Indexer
}
func NewArangoDeploymentLister(indexer cache.Indexer) ArangoDeploymentLister {
	return &arangoDeploymentLister{indexer: indexer}
}