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

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

package fake

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

// fakeCiliumIdentities implements CiliumIdentityInterface
type fakeCiliumIdentities struct {
	*gentype.FakeClientWithList[*v2.CiliumIdentity, *v2.CiliumIdentityList]
	Fake *FakeCiliumV2
}

func newFakeCiliumIdentities(fake *FakeCiliumV2) ciliumiov2.CiliumIdentityInterface {
	return &fakeCiliumIdentities{
		gentype.NewFakeClientWithList[*v2.CiliumIdentity, *v2.CiliumIdentityList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumidentities"),
			v2.SchemeGroupVersion.WithKind("CiliumIdentity"),
			func() *v2.CiliumIdentity { return &v2.CiliumIdentity{} },
			func() *v2.CiliumIdentityList { return &v2.CiliumIdentityList{} },
			func(dst, src *v2.CiliumIdentityList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumIdentityList) []*v2.CiliumIdentity { return gentype.ToPointerSlice(list.Items) },
			func(list *v2.CiliumIdentityList, items []*v2.CiliumIdentity) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
