/*
Copyright The Karmada Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

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

package v1alpha1

import (
	v1alpha1 "github.com/karmada-io/karmada/pkg/apis/autoscaling/v1alpha1"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/listers"
	"k8s.io/client-go/tools/cache"
)

// CronFederatedHPALister helps list CronFederatedHPAs.
// All objects returned here must be treated as read-only.
type CronFederatedHPALister interface {
	// List lists all CronFederatedHPAs in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*v1alpha1.CronFederatedHPA, err error)
	// CronFederatedHPAs returns an object that can list and get CronFederatedHPAs.
	CronFederatedHPAs(namespace string) CronFederatedHPANamespaceLister
	CronFederatedHPAListerExpansion
}

// cronFederatedHPALister implements the CronFederatedHPALister interface.
type cronFederatedHPALister struct {
	listers.ResourceIndexer[*v1alpha1.CronFederatedHPA]
}

// NewCronFederatedHPALister returns a new CronFederatedHPALister.
func NewCronFederatedHPALister(indexer cache.Indexer) CronFederatedHPALister {
	return &cronFederatedHPALister{listers.New[*v1alpha1.CronFederatedHPA](indexer, v1alpha1.Resource("cronfederatedhpa"))}
}

// CronFederatedHPAs returns an object that can list and get CronFederatedHPAs.
func (s *cronFederatedHPALister) CronFederatedHPAs(namespace string) CronFederatedHPANamespaceLister {
	return cronFederatedHPANamespaceLister{listers.NewNamespaced[*v1alpha1.CronFederatedHPA](s.ResourceIndexer, namespace)}
}

// CronFederatedHPANamespaceLister helps list and get CronFederatedHPAs.
// All objects returned here must be treated as read-only.
type CronFederatedHPANamespaceLister interface {
	// List lists all CronFederatedHPAs in the indexer for a given namespace.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*v1alpha1.CronFederatedHPA, err error)
	// Get retrieves the CronFederatedHPA from the indexer for a given namespace and name.
	// Objects returned here must be treated as read-only.
	Get(name string) (*v1alpha1.CronFederatedHPA, error)
	CronFederatedHPANamespaceListerExpansion
}

// cronFederatedHPANamespaceLister implements the CronFederatedHPANamespaceLister
// interface.
type cronFederatedHPANamespaceLister struct {
	listers.ResourceIndexer[*v1alpha1.CronFederatedHPA]
}
