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

package v1

import (
	operatorv1 "github.com/openshift/api/operator/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	listers "k8s.io/client-go/listers"
	cache "k8s.io/client-go/tools/cache"
)

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

// cloudCredentialLister implements the CloudCredentialLister interface.
type cloudCredentialLister struct {
	listers.ResourceIndexer[*operatorv1.CloudCredential]
}

// NewCloudCredentialLister returns a new CloudCredentialLister.
func NewCloudCredentialLister(indexer cache.Indexer) CloudCredentialLister {
	return &cloudCredentialLister{listers.New[*operatorv1.CloudCredential](indexer, operatorv1.Resource("cloudcredential"))}
}
