func (c *FakeClusterImagePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewRootDeleteAction(clusterimagepoliciesResource, name), &portieriscloudibmcomv1.ClusterImagePolicy{})
	return err
}
Delete takes name of the clusterImagePolicy and deletes it. Returns an error if one occurs.
package fake
import (
	"context"
	portieriscloudibmcomv1 "github.com/IBM/portieris/pkg/apis/portieris.cloud.ibm.com/v1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeClusterImagePolicies struct {
	Fake *FakePortierisV1
}
var clusterimagepoliciesResource = schema.GroupVersionResource{Group: "portieris.cloud.ibm.com", Version: "v1", Resource: "clusterimagepolicies"}
var clusterimagepoliciesKind = schema.GroupVersionKind{Group: "portieris.cloud.ibm.com", Version: "v1", Kind: "ClusterImagePolicy"}
func (c *FakeClusterImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(clusterimagepoliciesResource, name), &portieriscloudibmcomv1.ClusterImagePolicy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*portieriscloudibmcomv1.ClusterImagePolicy), err
}
func (c *FakeClusterImagePolicies) List(ctx context.Context, opts v1.ListOptions) (result *portieriscloudibmcomv1.ClusterImagePolicyList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(clusterimagepoliciesResource, clusterimagepoliciesKind, opts), &portieriscloudibmcomv1.ClusterImagePolicyList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &portieriscloudibmcomv1.ClusterImagePolicyList{ListMeta: obj.(*portieriscloudibmcomv1.ClusterImagePolicyList).ListMeta}
	for _, item := range obj.(*portieriscloudibmcomv1.ClusterImagePolicyList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeClusterImagePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewRootWatchAction(clusterimagepoliciesResource, opts))
}
func (c *FakeClusterImagePolicies) Create(ctx context.Context, clusterImagePolicy *portieriscloudibmcomv1.ClusterImagePolicy, opts v1.CreateOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootCreateAction(clusterimagepoliciesResource, clusterImagePolicy), &portieriscloudibmcomv1.ClusterImagePolicy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*portieriscloudibmcomv1.ClusterImagePolicy), err
}
func (c *FakeClusterImagePolicies) Update(ctx context.Context, clusterImagePolicy *portieriscloudibmcomv1.ClusterImagePolicy, opts v1.UpdateOptions) (result *portieriscloudibmcomv1.ClusterImagePolicy, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootUpdateAction(clusterimagepoliciesResource, clusterImagePolicy), &portieriscloudibmcomv1.ClusterImagePolicy{})
	if obj == nil {
		return nil, err
	}
	return obj.(*portieriscloudibmcomv1.ClusterImagePolicy), err
}