// 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"
)

// fakeCiliumNodes implements CiliumNodeInterface
type fakeCiliumNodes struct {
	*gentype.FakeClientWithList[*v2.CiliumNode, *v2.CiliumNodeList]
	Fake *FakeCiliumV2
}

func newFakeCiliumNodes(fake *FakeCiliumV2) ciliumiov2.CiliumNodeInterface {
	return &fakeCiliumNodes{
		gentype.NewFakeClientWithList[*v2.CiliumNode, *v2.CiliumNodeList](
			fake.Fake,
			"",
			v2.SchemeGroupVersion.WithResource("ciliumnodes"),
			v2.SchemeGroupVersion.WithKind("CiliumNode"),
			func() *v2.CiliumNode { return &v2.CiliumNode{} },
			func() *v2.CiliumNodeList { return &v2.CiliumNodeList{} },
			func(dst, src *v2.CiliumNodeList) { dst.ListMeta = src.ListMeta },
			func(list *v2.CiliumNodeList) []*v2.CiliumNode { return gentype.ToPointerSlice(list.Items) },
			func(list *v2.CiliumNodeList, items []*v2.CiliumNode) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
