// 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"
)

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

// stagedGlobalNetworkPolicyLister implements the StagedGlobalNetworkPolicyLister interface.
type stagedGlobalNetworkPolicyLister struct {
	listers.ResourceIndexer[*projectcalicov3.StagedGlobalNetworkPolicy]
}

// NewStagedGlobalNetworkPolicyLister returns a new StagedGlobalNetworkPolicyLister.
func NewStagedGlobalNetworkPolicyLister(indexer cache.Indexer) StagedGlobalNetworkPolicyLister {
	return &stagedGlobalNetworkPolicyLister{listers.New[*projectcalicov3.StagedGlobalNetworkPolicy](indexer, projectcalicov3.Resource("stagedglobalnetworkpolicy"))}
}
