func (s *sharePodLister) SharePods(namespace string) SharePodNamespaceLister {
	return sharePodNamespaceLister{indexer: s.indexer, namespace: namespace}
}
SharePods returns an object that can list and get SharePods.
package v1
import (
	v1 "github.com/NTHU-LSALAB/KubeShare/pkg/apis/kubeshare/v1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type SharePodLister interface {
	List(selector labels.Selector) (ret []*v1.SharePod, err error)
	SharePods(namespace string) SharePodNamespaceLister
	SharePodListerExpansion
}
type sharePodLister struct {
	indexer cache.Indexer
}
func NewSharePodLister(indexer cache.Indexer) SharePodLister {
	return &sharePodLister{indexer: indexer}
}
func (s *sharePodLister) List(selector labels.Selector) (ret []*v1.SharePod, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1.SharePod))
	})
	return ret, err
}