func (s *podNetworkingLister) Get(name string) (*v1beta1.PodNetworking, error) {
	obj, exists, err := s.indexer.GetByKey(name)
	if err != nil {
		return nil, err
	}
	if !exists {
		return nil, errors.NewNotFound(v1beta1.Resource("podnetworking"), name)
	}
	return obj.(*v1beta1.PodNetworking), nil
}
Get retrieves the PodNetworking from the index for a given name.
package v1beta1
import (
	v1beta1 "github.com/AliyunContainerService/terway/pkg/apis/network.alibabacloud.com/v1beta1"
	"k8s.io/apimachinery/pkg/api/errors"
	"k8s.io/apimachinery/pkg/labels"
	"k8s.io/client-go/tools/cache"
)
type PodNetworkingLister interface {
	List(selector labels.Selector) (ret []*v1beta1.PodNetworking, err error)
	Get(name string) (*v1beta1.PodNetworking, error)
	PodNetworkingListerExpansion
}
type podNetworkingLister struct {
	indexer cache.Indexer
}
func NewPodNetworkingLister(indexer cache.Indexer) PodNetworkingLister {
	return &podNetworkingLister{indexer: indexer}
}
func (s *podNetworkingLister) List(selector labels.Selector) (ret []*v1beta1.PodNetworking, err error) {
	err = cache.ListAll(s.indexer, selector, func(m interface{}) {
		ret = append(ret, m.(*v1beta1.PodNetworking))
	})
	return ret, err
}