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

package v1

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

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

// machineConfigLister implements the MachineConfigLister interface.
type machineConfigLister struct {
	listers.ResourceIndexer[*machineconfigurationv1.MachineConfig]
}

// NewMachineConfigLister returns a new MachineConfigLister.
func NewMachineConfigLister(indexer cache.Indexer) MachineConfigLister {
	return &machineConfigLister{listers.New[*machineconfigurationv1.MachineConfig](indexer, machineconfigurationv1.Resource("machineconfig"))}
}
