func (c *FakePodNetworkings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodNetworkingList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(podnetworkingsResource, podnetworkingsKind, opts), &v1beta1.PodNetworkingList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1beta1.PodNetworkingList{ListMeta: obj.(*v1beta1.PodNetworkingList).ListMeta}
	for _, item := range obj.(*v1beta1.PodNetworkingList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
List takes label and field selectors, and returns the list of PodNetworkings that match those selectors.
package fake
import (
	"context"
	v1beta1 "github.com/AliyunContainerService/terway/pkg/apis/network.alibabacloud.com/v1beta1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakePodNetworkings struct {
	Fake *FakeNetworkV1beta1
}
var podnetworkingsResource = schema.GroupVersionResource{Group: "network.alibabacloud.com", Version: "v1beta1", Resource: "podnetworkings"}
var podnetworkingsKind = schema.GroupVersionKind{Group: "network.alibabacloud.com", Version: "v1beta1", Kind: "PodNetworking"}
func (c *FakePodNetworkings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PodNetworking, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(podnetworkingsResource, name), &v1beta1.PodNetworking{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.PodNetworking), err
}