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

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

// dNSLister implements the DNSLister interface.
type dNSLister struct {
	listers.ResourceIndexer[*operatorv1.DNS]
}

// NewDNSLister returns a new DNSLister.
func NewDNSLister(indexer cache.Indexer) DNSLister {
	return &dNSLister{listers.New[*operatorv1.DNS](indexer, operatorv1.Resource("dns"))}
}
