func (s *pyTorchJobLister) PyTorchJobs(namespace string) PyTorchJobNamespaceLister {
	return pyTorchJobNamespaceLister{indexer: s.indexer, namespace: namespace}
}
PyTorchJobs returns an object that can list and get PyTorchJobs.
package v1alpha1
import (
	v1alpha1 "github.com/alibaba/kubedl/apis/training/v1alpha1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type PyTorchJobLister interface {
	List(selector labels.Selector) (ret []*v1alpha1.PyTorchJob, err error)
	PyTorchJobs(namespace string) PyTorchJobNamespaceLister
	PyTorchJobListerExpansion
}
type pyTorchJobLister struct {
	indexer cache.Indexer
}
func NewPyTorchJobLister(indexer cache.Indexer) PyTorchJobLister {
	return &pyTorchJobLister{indexer: indexer}
}
func (s *pyTorchJobLister) List(selector labels.Selector) (ret []*v1alpha1.PyTorchJob, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1alpha1.PyTorchJob))
	})
	return ret, err
}