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

package v1

import (
	machineconfigurationv1 "github.com/openshift/api/machineconfiguration/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

// OSImageStreamLister helps list OSImageStreams.
// All objects returned here must be treated as read-only.
type OSImageStreamLister interface {
	// List lists all OSImageStreams in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*machineconfigurationv1.OSImageStream, err error)
	// Get retrieves the OSImageStream from the index for a given name.
	// Objects returned here must be treated as read-only.
	Get(name string) (*machineconfigurationv1.OSImageStream, error)
	OSImageStreamListerExpansion
}

// oSImageStreamLister implements the OSImageStreamLister interface.
type oSImageStreamLister struct {
	listers.ResourceIndexer[*machineconfigurationv1.OSImageStream]
}

// NewOSImageStreamLister returns a new OSImageStreamLister.
func NewOSImageStreamLister(indexer cache.Indexer) OSImageStreamLister {
	return &oSImageStreamLister{listers.New[*machineconfigurationv1.OSImageStream](indexer, machineconfigurationv1.Resource("osimagestream"))}
}
