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

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

package fake

import (
	v1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1"
	corev1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/client/clientset/versioned/typed/core/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeNodes implements NodeInterface
type fakeNodes struct {
	*gentype.FakeClientWithList[*v1.Node, *v1.NodeList]
	Fake *FakeCoreV1
}

func newFakeNodes(fake *FakeCoreV1) corev1.NodeInterface {
	return &fakeNodes{
		gentype.NewFakeClientWithList[*v1.Node, *v1.NodeList](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("nodes"),
			v1.SchemeGroupVersion.WithKind("Node"),
			func() *v1.Node { return &v1.Node{} },
			func() *v1.NodeList { return &v1.NodeList{} },
			func(dst, src *v1.NodeList) { dst.ListMeta = src.ListMeta },
			func(list *v1.NodeList) []*v1.Node { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.NodeList, items []*v1.Node) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
