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

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

// imageContentSourcePolicyLister implements the ImageContentSourcePolicyLister interface.
type imageContentSourcePolicyLister struct {
	listers.ResourceIndexer[*operatorv1alpha1.ImageContentSourcePolicy]
}

// NewImageContentSourcePolicyLister returns a new ImageContentSourcePolicyLister.
func NewImageContentSourcePolicyLister(indexer cache.Indexer) ImageContentSourcePolicyLister {
	return &imageContentSourcePolicyLister{listers.New[*operatorv1alpha1.ImageContentSourcePolicy](indexer, operatorv1alpha1.Resource("imagecontentsourcepolicy"))}
}
