func (s oCIBuilderNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.OCIBuilder, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.OCIBuilder))
	})
	return ret, err
}
List lists all OCIBuilders in the indexer for a given namespace.
package v1alpha1
import (
	v1alpha1 "github.com/ocibuilder/ocibuilder/pkg/apis/ocibuilder/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type OCIBuilderLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.OCIBuilder, err error)
	OCIBuilders(namespace string) OCIBuilderNamespaceLister
	OCIBuilderListerExpansion
}
type oCIBuilderLister struct {
	indexer cache.Indexer
}
func NewOCIBuilderLister(indexer cache.Indexer) OCIBuilderLister {
	return &oCIBuilderLister{indexer: indexer}
}
func (s *oCIBuilderLister) List(selector labels.Selector) (ret []*v1alpha1.OCIBuilder, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.OCIBuilder))
	})
	return ret, err
}
func (s *oCIBuilderLister) OCIBuilders(namespace string) OCIBuilderNamespaceLister {
	return oCIBuilderNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type OCIBuilderNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.OCIBuilder, err error)
	Get(name string) (*v1alpha1.OCIBuilder, error)
	OCIBuilderNamespaceListerExpansion
}
type oCIBuilderNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}