func NewPolicyLister(indexer cache.Indexer) PolicyLister {
	return &policyLister{indexer: indexer}
}
NewPolicyLister returns a new PolicyLister.
package v1
import (
	v1 "github.com/kyverno/kyverno/pkg/api/kyverno/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type PolicyLister interface {
	List(selector labels.Selector) (ret []*v1.Policy, err error)
	Policies(namespace string) PolicyNamespaceLister
	PolicyListerExpansion
}
type policyLister struct {
	indexer cache.Indexer
}