// Copyright Contributors to the Open Cluster Management project
// Code generated by client-gen. DO NOT EDIT.

package fake

import (
	gentype "k8s.io/client-go/gentype"
	operatorv1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
	v1 "open-cluster-management.io/api/operator/v1"
)

// fakeKlusterlets implements KlusterletInterface
type fakeKlusterlets struct {
	*gentype.FakeClientWithList[*v1.Klusterlet, *v1.KlusterletList]
	Fake *FakeOperatorV1
}

func newFakeKlusterlets(fake *FakeOperatorV1) operatorv1.KlusterletInterface {
	return &fakeKlusterlets{
		gentype.NewFakeClientWithList[*v1.Klusterlet, *v1.KlusterletList](
			fake.Fake,
			"",
			v1.SchemeGroupVersion.WithResource("klusterlets"),
			v1.SchemeGroupVersion.WithKind("Klusterlet"),
			func() *v1.Klusterlet { return &v1.Klusterlet{} },
			func() *v1.KlusterletList { return &v1.KlusterletList{} },
			func(dst, src *v1.KlusterletList) { dst.ListMeta = src.ListMeta },
			func(list *v1.KlusterletList) []*v1.Klusterlet { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.KlusterletList, items []*v1.Klusterlet) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
