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

package v1alpha1

import (
	operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// etcdBackupLister implements the EtcdBackupLister interface.
type etcdBackupLister struct {
	listers.ResourceIndexer[*operatorv1alpha1.EtcdBackup]
}

// NewEtcdBackupLister returns a new EtcdBackupLister.
func NewEtcdBackupLister(indexer cache.Indexer) EtcdBackupLister {
	return &etcdBackupLister{listers.New[*operatorv1alpha1.EtcdBackup](indexer, operatorv1alpha1.Resource("etcdbackup"))}
}
