func (s adjustmentNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Adjustment, err error) {
	err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Adjustment))
	})
	return ret, err
}
List lists all Adjustments in the indexer for a given namespace.
package v1alpha1
import (
	v1alpha1 "github.com/intel/cri-resource-manager/pkg/apis/resmgr/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type AdjustmentLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Adjustment, err error)
	Adjustments(namespace string) AdjustmentNamespaceLister
	AdjustmentListerExpansion
}
type adjustmentLister struct {
	indexer cache.Indexer
}
func NewAdjustmentLister(indexer cache.Indexer) AdjustmentLister {
	return &adjustmentLister{indexer: indexer}
}
func (s *adjustmentLister) List(selector labels.Selector) (ret []*v1alpha1.Adjustment, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.Adjustment))
	})
	return ret, err
}
func (s *adjustmentLister) Adjustments(namespace string) AdjustmentNamespaceLister {
	return adjustmentNamespaceLister{indexer: s.indexer, namespace: namespace}
}
type AdjustmentNamespaceLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.Adjustment, err error)
	Get(name string) (*v1alpha1.Adjustment, error)
	AdjustmentNamespaceListerExpansion
}
type adjustmentNamespaceLister struct {
	indexer   cache.Indexer
	namespace string
}