// Copyright 2020-2026 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

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

package fake

import (
	v1alpha1 "go.pinniped.dev/generated/latest/apis/concierge/config/v1alpha1"
	configv1alpha1 "go.pinniped.dev/generated/latest/client/concierge/clientset/versioned/typed/config/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeCredentialIssuers implements CredentialIssuerInterface
type fakeCredentialIssuers struct {
	*gentype.FakeClientWithList[*v1alpha1.CredentialIssuer, *v1alpha1.CredentialIssuerList]
	Fake *FakeConfigV1alpha1
}

func newFakeCredentialIssuers(fake *FakeConfigV1alpha1) configv1alpha1.CredentialIssuerInterface {
	return &fakeCredentialIssuers{
		gentype.NewFakeClientWithList[*v1alpha1.CredentialIssuer, *v1alpha1.CredentialIssuerList](
			fake.Fake,
			"",
			v1alpha1.SchemeGroupVersion.WithResource("credentialissuers"),
			v1alpha1.SchemeGroupVersion.WithKind("CredentialIssuer"),
			func() *v1alpha1.CredentialIssuer { return &v1alpha1.CredentialIssuer{} },
			func() *v1alpha1.CredentialIssuerList { return &v1alpha1.CredentialIssuerList{} },
			func(dst, src *v1alpha1.CredentialIssuerList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.CredentialIssuerList) []*v1alpha1.CredentialIssuer {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha1.CredentialIssuerList, items []*v1alpha1.CredentialIssuer) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
