func (s *imageLister) Images(namespace string) ImageNamespaceLister {
	return imageNamespaceLister{indexer: s.indexer, namespace: namespace}
}
Images returns an object that can list and get Images.
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 ImageLister interface {
	List(selector labels.Selector) (ret []*v1alpha2.Image, err error)
	Images(namespace string) ImageNamespaceLister
	ImageListerExpansion
}
type imageLister struct {
	indexer cache.Indexer
}
func NewImageLister(indexer cache.Indexer) ImageLister {
	return &imageLister{indexer: indexer}
}
func (s *imageLister) List(selector labels.Selector) (ret []*v1alpha2.Image, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha2.Image))
	})
	return ret, err
}