// 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"
)

// IngressControllerLister helps list IngressControllers.
// All objects returned here must be treated as read-only.
type IngressControllerLister interface {
	// List lists all IngressControllers in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*operatorv1.IngressController, err error)
	// IngressControllers returns an object that can list and get IngressControllers.
	IngressControllers(namespace string) IngressControllerNamespaceLister
	IngressControllerListerExpansion
}

// ingressControllerLister implements the IngressControllerLister interface.
type ingressControllerLister struct {
	listers.ResourceIndexer[*operatorv1.IngressController]
}

// NewIngressControllerLister returns a new IngressControllerLister.
func NewIngressControllerLister(indexer cache.Indexer) IngressControllerLister {
	return &ingressControllerLister{listers.New[*operatorv1.IngressController](indexer, operatorv1.Resource("ingresscontroller"))}
}

// IngressControllers returns an object that can list and get IngressControllers.
func (s *ingressControllerLister) IngressControllers(namespace string) IngressControllerNamespaceLister {
	return ingressControllerNamespaceLister{listers.NewNamespaced[*operatorv1.IngressController](s.ResourceIndexer, namespace)}
}

// IngressControllerNamespaceLister helps list and get IngressControllers.
// All objects returned here must be treated as read-only.
type IngressControllerNamespaceLister interface {
	// List lists all IngressControllers in the indexer for a given namespace.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*operatorv1.IngressController, err error)
	// Get retrieves the IngressController from the indexer for a given namespace and name.
	// Objects returned here must be treated as read-only.
	Get(name string) (*operatorv1.IngressController, error)
	IngressControllerNamespaceListerExpansion
}

// ingressControllerNamespaceLister implements the IngressControllerNamespaceLister
// interface.
type ingressControllerNamespaceLister struct {
	listers.ResourceIndexer[*operatorv1.IngressController]
}
