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

package v1

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

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

// infrastructureLister implements the InfrastructureLister interface.
type infrastructureLister struct {
	listers.ResourceIndexer[*configv1.Infrastructure]
}

// NewInfrastructureLister returns a new InfrastructureLister.
func NewInfrastructureLister(indexer cache.Indexer) InfrastructureLister {
	return &infrastructureLister{listers.New[*configv1.Infrastructure](indexer, configv1.Resource("infrastructure"))}
}
