/*
Copyright The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

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

package fake

import (
	v1alpha2 "github.com/linkerd/linkerd2/controller/gen/apis/link/v1alpha2"
	linkv1alpha2 "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned/typed/link/v1alpha2"
	gentype "k8s.io/client-go/gentype"
)

// fakeLinks implements LinkInterface
type fakeLinks struct {
	*gentype.FakeClientWithList[*v1alpha2.Link, *v1alpha2.LinkList]
	Fake *FakeLinkV1alpha2
}

func newFakeLinks(fake *FakeLinkV1alpha2, namespace string) linkv1alpha2.LinkInterface {
	return &fakeLinks{
		gentype.NewFakeClientWithList[*v1alpha2.Link, *v1alpha2.LinkList](
			fake.Fake,
			namespace,
			v1alpha2.SchemeGroupVersion.WithResource("links"),
			v1alpha2.SchemeGroupVersion.WithKind("Link"),
			func() *v1alpha2.Link { return &v1alpha2.Link{} },
			func() *v1alpha2.LinkList { return &v1alpha2.LinkList{} },
			func(dst, src *v1alpha2.LinkList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha2.LinkList) []*v1alpha2.Link { return gentype.ToPointerSlice(list.Items) },
			func(list *v1alpha2.LinkList, items []*v1alpha2.Link) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
