func (s configurationNamespaceLister) Get(name string) (*v1alpha1.Configuration, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1alpha1.Resource("configuration"), name)
	}
	return obj.(*v1alpha1.Configuration), nil
}
Get retrieves the Configuration from the indexer for a given namespace and name.
package v1alpha1
import (
	v1alpha1 "github.com/dapr/dapr/pkg/apis/configuration/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ConfigurationLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Configuration, err error)
	Configurations(namespace string) ConfigurationNamespaceLister
	ConfigurationListerExpansion
}
type configurationLister struct {
	indexer cache.Indexer
}
func NewConfigurationLister(indexer cache.Indexer) ConfigurationLister {
	return &configurationLister{indexer: indexer}
}
func (s *configurationLister) List(selector labels.Selector) (ret []*v1alpha1.Configuration, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Configuration))
	})
	return ret, err
}
func (s *configurationLister) Configurations(namespace string) ConfigurationNamespaceLister {
	return configurationNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type ConfigurationNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Configuration, err error)
	Get(name string) (*v1alpha1.Configuration, error)
	ConfigurationNamespaceListerExpansion
}
type configurationNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s configurationNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Configuration, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Configuration))
	})
	return ret, err
}