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

package v1

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

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

// kubeSchedulerLister implements the KubeSchedulerLister interface.
type kubeSchedulerLister struct {
	listers.ResourceIndexer[*operatorv1.KubeScheduler]
}

// NewKubeSchedulerLister returns a new KubeSchedulerLister.
func NewKubeSchedulerLister(indexer cache.Indexer) KubeSchedulerLister {
	return &kubeSchedulerLister{listers.New[*operatorv1.KubeScheduler](indexer, operatorv1.Resource("kubescheduler"))}
}
