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

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

// oAuthAccessTokenLister implements the OAuthAccessTokenLister interface.
type oAuthAccessTokenLister struct {
	listers.ResourceIndexer[*oauthv1.OAuthAccessToken]
}

// NewOAuthAccessTokenLister returns a new OAuthAccessTokenLister.
func NewOAuthAccessTokenLister(indexer cache.Indexer) OAuthAccessTokenLister {
	return &oAuthAccessTokenLister{listers.New[*oauthv1.OAuthAccessToken](indexer, oauthv1.Resource("oauthaccesstoken"))}
}
