/*
Copyright 2020 The Flux 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 (
	v1 "github.com/fluxcd/flagger/pkg/apis/projectcontour/v1"
	projectcontourv1 "github.com/fluxcd/flagger/pkg/client/clientset/versioned/typed/projectcontour/v1"
	gentype "k8s.io/client-go/gentype"
)

// fakeHTTPProxies implements HTTPProxyInterface
type fakeHTTPProxies struct {
	*gentype.FakeClientWithList[*v1.HTTPProxy, *v1.HTTPProxyList]
	Fake *FakeProjectcontourV1
}

func newFakeHTTPProxies(fake *FakeProjectcontourV1, namespace string) projectcontourv1.HTTPProxyInterface {
	return &fakeHTTPProxies{
		gentype.NewFakeClientWithList[*v1.HTTPProxy, *v1.HTTPProxyList](
			fake.Fake,
			namespace,
			v1.SchemeGroupVersion.WithResource("httpproxies"),
			v1.SchemeGroupVersion.WithKind("HTTPProxy"),
			func() *v1.HTTPProxy { return &v1.HTTPProxy{} },
			func() *v1.HTTPProxyList { return &v1.HTTPProxyList{} },
			func(dst, src *v1.HTTPProxyList) { dst.ListMeta = src.ListMeta },
			func(list *v1.HTTPProxyList) []*v1.HTTPProxy { return gentype.ToPointerSlice(list.Items) },
			func(list *v1.HTTPProxyList, items []*v1.HTTPProxy) { list.Items = gentype.FromPointerSlice(items) },
		),
		fake,
	}
}
