// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

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

package fake

import (
	v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1"
	ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeCiliumDatapathPlugins implements CiliumDatapathPluginInterface
type fakeCiliumDatapathPlugins struct {
	*gentype.FakeClientWithList[*v2alpha1.CiliumDatapathPlugin, *v2alpha1.CiliumDatapathPluginList]
	Fake *FakeCiliumV2alpha1
}

func newFakeCiliumDatapathPlugins(fake *FakeCiliumV2alpha1) ciliumiov2alpha1.CiliumDatapathPluginInterface {
	return &fakeCiliumDatapathPlugins{
		gentype.NewFakeClientWithList[*v2alpha1.CiliumDatapathPlugin, *v2alpha1.CiliumDatapathPluginList](
			fake.Fake,
			"",
			v2alpha1.SchemeGroupVersion.WithResource("ciliumdatapathplugins"),
			v2alpha1.SchemeGroupVersion.WithKind("CiliumDatapathPlugin"),
			func() *v2alpha1.CiliumDatapathPlugin { return &v2alpha1.CiliumDatapathPlugin{} },
			func() *v2alpha1.CiliumDatapathPluginList { return &v2alpha1.CiliumDatapathPluginList{} },
			func(dst, src *v2alpha1.CiliumDatapathPluginList) { dst.ListMeta = src.ListMeta },
			func(list *v2alpha1.CiliumDatapathPluginList) []*v2alpha1.CiliumDatapathPlugin {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v2alpha1.CiliumDatapathPluginList, items []*v2alpha1.CiliumDatapathPlugin) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
