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

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

// configLister implements the ConfigLister interface.
type configLister struct {
	listers.ResourceIndexer[*operatorv1.Config]
}

// NewConfigLister returns a new ConfigLister.
func NewConfigLister(indexer cache.Indexer) ConfigLister {
	return &configLister{listers.New[*operatorv1.Config](indexer, operatorv1.Resource("config"))}
}
