// Copyright (c) 2025 Tigera, Inc. All rights reserved.

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

package v3

import (
	projectcalicov3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// calicoNodeStatusLister implements the CalicoNodeStatusLister interface.
type calicoNodeStatusLister struct {
	listers.ResourceIndexer[*projectcalicov3.CalicoNodeStatus]
}

// NewCalicoNodeStatusLister returns a new CalicoNodeStatusLister.
func NewCalicoNodeStatusLister(indexer cache.Indexer) CalicoNodeStatusLister {
	return &calicoNodeStatusLister{listers.New[*projectcalicov3.CalicoNodeStatus](indexer, projectcalicov3.Resource("caliconodestatus"))}
}
