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

package v1alpha2

import (
	v1alpha2 "github.com/clusterpedia-io/api/cluster/v1alpha2"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/listers"
	"k8s.io/client-go/tools/cache"
)

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

// pediaClusterLister implements the PediaClusterLister interface.
type pediaClusterLister struct {
	listers.ResourceIndexer[*v1alpha2.PediaCluster]
}

// NewPediaClusterLister returns a new PediaClusterLister.
func NewPediaClusterLister(indexer cache.Indexer) PediaClusterLister {
	return &pediaClusterLister{listers.New[*v1alpha2.PediaCluster](indexer, v1alpha2.Resource("pediacluster"))}
}
