func (s builderNamespaceLister) Get(name string) (*v1alpha2.Builder, error) {
	obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1alpha2.Resource("builder"), name)
	}
	return obj.(*v1alpha2.Builder), nil
}
Get retrieves the Builder from the indexer for a given namespace and name.
package v1alpha2
import (
	v1alpha2 "github.com/pivotal/kpack/pkg/apis/build/v1alpha2"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type BuilderLister interface {
	List(selector labels.Selector) (ret []*v1alpha2.Builder, err error)
	Builders(namespace string) BuilderNamespaceLister
	BuilderListerExpansion
}
type builderLister struct {
	indexer cache.Indexer
}
func NewBuilderLister(indexer cache.Indexer) BuilderLister {
	return &builderLister{indexer: indexer}
}
func (s *builderLister) List(selector labels.Selector) (ret []*v1alpha2.Builder, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha2.Builder))
	})
	return ret, err
}
func (s *builderLister) Builders(namespace string) BuilderNamespaceLister {
	return builderNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type BuilderNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha2.Builder, err error)
	Get(name string) (*v1alpha2.Builder, error)
	BuilderNamespaceListerExpansion
}
type builderNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}
func (s builderNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Builder, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha2.Builder))
	})
	return ret, err
}