func (c *Client) getImagePolicyList(namespace string) (*policyV1.ImagePolicyList, error) {
	policies, err := c.policyClientSet.PortierisV1().ImagePolicies(namespace).List(context.TODO(), metav1.ListOptions{})
	if err != nil {
		return nil, err
	}
	return policies, nil
}
getImagePolicyList retrieves the list of image policies in the specified namespace
package policy
import (
	"context"
	"fmt"
	policyClientSet "github.com/IBM/portieris/pkg/apis/portieris.cloud.ibm.com/client/clientset/versioned"
	policyV1 "github.com/IBM/portieris/pkg/apis/portieris.cloud.ibm.com/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type Interface interface {
	GetPolicyToEnforce(namespace, image string) (*policyV1.Policy, error)
}
type Client struct {
	policyClientSet policyClientSet.Interface
}
func NewClient(policyClientSet policyClientSet.Interface) *Client {
	return &Client{
		policyClientSet: policyClientSet,
	}
}