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

package fake

import (
	v1alpha1 "github.com/openshift/api/machineconfiguration/v1alpha1"
	machineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/applyconfigurations/machineconfiguration/v1alpha1"
	typedmachineconfigurationv1alpha1 "github.com/openshift/client-go/machineconfiguration/clientset/versioned/typed/machineconfiguration/v1alpha1"
	gentype "k8s.io/client-go/gentype"
)

// fakeOSImageStreams implements OSImageStreamInterface
type fakeOSImageStreams struct {
	*gentype.FakeClientWithListAndApply[*v1alpha1.OSImageStream, *v1alpha1.OSImageStreamList, *machineconfigurationv1alpha1.OSImageStreamApplyConfiguration]
	Fake *FakeMachineconfigurationV1alpha1
}

func newFakeOSImageStreams(fake *FakeMachineconfigurationV1alpha1) typedmachineconfigurationv1alpha1.OSImageStreamInterface {
	return &fakeOSImageStreams{
		gentype.NewFakeClientWithListAndApply[*v1alpha1.OSImageStream, *v1alpha1.OSImageStreamList, *machineconfigurationv1alpha1.OSImageStreamApplyConfiguration](
			fake.Fake,
			"",
			v1alpha1.SchemeGroupVersion.WithResource("osimagestreams"),
			v1alpha1.SchemeGroupVersion.WithKind("OSImageStream"),
			func() *v1alpha1.OSImageStream { return &v1alpha1.OSImageStream{} },
			func() *v1alpha1.OSImageStreamList { return &v1alpha1.OSImageStreamList{} },
			func(dst, src *v1alpha1.OSImageStreamList) { dst.ListMeta = src.ListMeta },
			func(list *v1alpha1.OSImageStreamList) []*v1alpha1.OSImageStream {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v1alpha1.OSImageStreamList, items []*v1alpha1.OSImageStream) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
