func (s stackSetNamespaceLister) Get(name string) (*v1.StackSet, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1.Resource("stackset"), name)
	}
	return obj.(*v1.StackSet), nil
}
Get retrieves the StackSet from the indexer for a given namespace and name.
package v1
import (
	v1 "github.com/zalando-incubator/stackset-controller/pkg/apis/zalando.org/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type StackSetLister interface {
	List(selector labels.Selector) (ret []*v1.StackSet, err error)
	StackSets(namespace string) StackSetNamespaceLister
	StackSetListerExpansion
}
type stackSetLister struct {
	indexer cache.Indexer
}
func NewStackSetLister(indexer cache.Indexer) StackSetLister {
	return &stackSetLister{indexer: indexer}
}
func (s *stackSetLister) List(selector labels.Selector) (ret []*v1.StackSet, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.StackSet))
	})
	return ret, err
}
func (s *stackSetLister) StackSets(namespace string) StackSetNamespaceLister {
	return stackSetNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type StackSetNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1.StackSet, err error)
	Get(name string) (*v1.StackSet, error)
	StackSetNamespaceListerExpansion
}
type stackSetNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s stackSetNamespaceLister) List(selector labels.Selector) (ret []*v1.StackSet, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.StackSet))
	})
	return ret, err
}