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

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

package v2alpha1

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

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

// ciliumCIDRGroupLister implements the CiliumCIDRGroupLister interface.
type ciliumCIDRGroupLister struct {
	listers.ResourceIndexer[*ciliumiov2alpha1.CiliumCIDRGroup]
}

// NewCiliumCIDRGroupLister returns a new CiliumCIDRGroupLister.
func NewCiliumCIDRGroupLister(indexer cache.Indexer) CiliumCIDRGroupLister {
	return &ciliumCIDRGroupLister{listers.New[*ciliumiov2alpha1.CiliumCIDRGroup](indexer, ciliumiov2alpha1.Resource("ciliumcidrgroup"))}
}
