// Code generated by client-gen. DO NOT EDIT.

package fake

import (
	v1 "github.com/openshift/api/config/v1"
	configv1 "github.com/openshift/client-go/config/applyconfigurations/config/v1"
	typedconfigv1 "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeImagePolicies implements ImagePolicyInterface
type fakeImagePolicies struct {
	*gentype.FakeClientWithListAndApply[*v1.ImagePolicy, *v1.ImagePolicyList, *configv1.ImagePolicyApplyConfiguration]
	Fake *FakeConfigV1
}

func newFakeImagePolicies(fake *FakeConfigV1, namespace string) typedconfigv1.ImagePolicyInterface {
	return &fakeImagePolicies{
		gentype.NewFakeClientWithListAndApply[*v1.ImagePolicy, *v1.ImagePolicyList, *configv1.ImagePolicyApplyConfiguration](
			fake.Fake,
			namespace,
			v1.SchemeGroupVersion.WithResource("imagepolicies"),
			v1.SchemeGroupVersion.WithKind("ImagePolicy"),
			func() *v1.ImagePolicy { return &v1.ImagePolicy{} },
			func() *v1.ImagePolicyList { return &v1.ImagePolicyList{} },
			func(dst, src *v1.ImagePolicyList) { dst.ListMeta = src.ListMeta },
			func(list *v1.ImagePolicyList) []*v1.ImagePolicy { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.ImagePolicyList, items []*v1.ImagePolicy) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
