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

package v1

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

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

// oAuthClientAuthorizationLister implements the OAuthClientAuthorizationLister interface.
type oAuthClientAuthorizationLister struct {
	listers.ResourceIndexer[*oauthv1.OAuthClientAuthorization]
}

// NewOAuthClientAuthorizationLister returns a new OAuthClientAuthorizationLister.
func NewOAuthClientAuthorizationLister(indexer cache.Indexer) OAuthClientAuthorizationLister {
	return &oAuthClientAuthorizationLister{listers.New[*oauthv1.OAuthClientAuthorization](indexer, oauthv1.Resource("oauthclientauthorization"))}
}
