// Copyright 2020-2026 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

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

package v1alpha1

import (
	authenticationv1alpha1 "go.pinniped.dev/generated/1.34/apis/concierge/authentication/v1alpha1"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// webhookAuthenticatorLister implements the WebhookAuthenticatorLister interface.
type webhookAuthenticatorLister struct {
	listers.ResourceIndexer[*authenticationv1alpha1.WebhookAuthenticator]
}

// NewWebhookAuthenticatorLister returns a new WebhookAuthenticatorLister.
func NewWebhookAuthenticatorLister(indexer cache.Indexer) WebhookAuthenticatorLister {
	return &webhookAuthenticatorLister{listers.New[*authenticationv1alpha1.WebhookAuthenticator](indexer, authenticationv1alpha1.Resource("webhookauthenticator"))}
}
