func (s *imagePolicyLister) ImagePolicies(namespace string) ImagePolicyNamespaceLister {
	return imagePolicyNamespaceLister{indexer: s.indexer, namespace: namespace}
}
ImagePolicies returns an object that can list and get ImagePolicies.
package v1
import (
	v1 "github.com/IBM/portieris/pkg/apis/portieris.cloud.ibm.com/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type ImagePolicyLister interface {
	List(selector labels.Selector) (ret []*v1.ImagePolicy, err error)
	ImagePolicies(namespace string) ImagePolicyNamespaceLister
	ImagePolicyListerExpansion
}
type imagePolicyLister struct {
	indexer cache.Indexer
}
func NewImagePolicyLister(indexer cache.Indexer) ImagePolicyLister {
	return &imagePolicyLister{indexer: indexer}
}
func (s *imagePolicyLister) List(selector labels.Selector) (ret []*v1.ImagePolicy, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.ImagePolicy))
	})
	return ret, err
}