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

package v1alpha1

import (
	workflowv1alpha1 "github.com/argoproj/argo-workflows/v4/pkg/apis/workflow/v1alpha1"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// clusterWorkflowTemplateLister implements the ClusterWorkflowTemplateLister interface.
type clusterWorkflowTemplateLister struct {
	listers.ResourceIndexer[*workflowv1alpha1.ClusterWorkflowTemplate]
}

// NewClusterWorkflowTemplateLister returns a new ClusterWorkflowTemplateLister.
func NewClusterWorkflowTemplateLister(indexer cache.Indexer) ClusterWorkflowTemplateLister {
	return &clusterWorkflowTemplateLister{listers.New[*workflowv1alpha1.ClusterWorkflowTemplate](indexer, workflowv1alpha1.Resource("clusterworkflowtemplate"))}
}
