// Copyright (c) 2026 Tigera, Inc. All rights reserved.

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

package fake

import (
	v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	projectcalicov3 "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

// fakeClusterInformations implements ClusterInformationInterface
type fakeClusterInformations struct {
	*gentype.FakeClientWithList[*v3.ClusterInformation, *v3.ClusterInformationList]
	Fake *FakeProjectcalicoV3
}

func newFakeClusterInformations(fake *FakeProjectcalicoV3) projectcalicov3.ClusterInformationInterface {
	return &fakeClusterInformations{
		gentype.NewFakeClientWithList[*v3.ClusterInformation, *v3.ClusterInformationList](
			fake.Fake,
			"",
			v3.SchemeGroupVersion.WithResource("clusterinformations"),
			v3.SchemeGroupVersion.WithKind("ClusterInformation"),
			func() *v3.ClusterInformation { return &v3.ClusterInformation{} },
			func() *v3.ClusterInformationList { return &v3.ClusterInformationList{} },
			func(dst, src *v3.ClusterInformationList) { dst.ListMeta = src.ListMeta },
			func(list *v3.ClusterInformationList) []*v3.ClusterInformation {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v3.ClusterInformationList, items []*v3.ClusterInformation) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
