func (s vaultNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Vault, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Vault))
	})
	return ret, err
}
List lists all Vaults in the indexer for a given namespace.
package v1alpha1
import (
	v1alpha1 "github.com/banzaicloud/bank-vaults/operator/pkg/apis/vault/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type VaultLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Vault, err error)
	Vaults(namespace string) VaultNamespaceLister
	VaultListerExpansion
}
type vaultLister struct {
	indexer cache.Indexer
}
func NewVaultLister(indexer cache.Indexer) VaultLister {
	return &vaultLister{indexer: indexer}
}
func (s *vaultLister) List(selector labels.Selector) (ret []*v1alpha1.Vault, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Vault))
	})
	return ret, err
}
func (s *vaultLister) Vaults(namespace string) VaultNamespaceLister {
	return vaultNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type VaultNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Vault, err error)
	Get(name string) (*v1alpha1.Vault, error)
	VaultNamespaceListerExpansion
}
type vaultNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}