// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

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

package v2

import (
	ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// ciliumLoadBalancerIPPoolLister implements the CiliumLoadBalancerIPPoolLister interface.
type ciliumLoadBalancerIPPoolLister struct {
	listers.ResourceIndexer[*ciliumiov2.CiliumLoadBalancerIPPool]
}

// NewCiliumLoadBalancerIPPoolLister returns a new CiliumLoadBalancerIPPoolLister.
func NewCiliumLoadBalancerIPPoolLister(indexer cache.Indexer) CiliumLoadBalancerIPPoolLister {
	return &ciliumLoadBalancerIPPoolLister{listers.New[*ciliumiov2.CiliumLoadBalancerIPPool](indexer, ciliumiov2.Resource("ciliumloadbalancerippool"))}
}
