func (c *FakeCDIs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CDIList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(cdisResource, cdisKind, opts), &v1beta1.CDIList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1beta1.CDIList{ListMeta: obj.(*v1beta1.CDIList).ListMeta}
	for _, item := range obj.(*v1beta1.CDIList).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 CDIs that match those selectors.
package fake
import (
	"context"
	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"
	v1beta1 "kubevirt.io/containerized-data-importer/pkg/apis/core/v1beta1"
)
type FakeCDIs struct {
	Fake *FakeCdiV1beta1
}
var cdisResource = schema.GroupVersionResource{Group: "cdi.kubevirt.io", Version: "v1beta1", Resource: "cdis"}
var cdisKind = schema.GroupVersionKind{Group: "cdi.kubevirt.io", Version: "v1beta1", Kind: "CDI"}
func (c *FakeCDIs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CDI, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(cdisResource, name), &v1beta1.CDI{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.CDI), err
}