func (c *FakeTunnels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(tunnelsResource, c.ns, listOpts)
	_, err := c.Fake.Invokes(action, &v1alpha1.TunnelList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	"context"
	v1alpha1 "github.com/inlets/inlets-operator/pkg/apis/inletsoperator/v1alpha1"
	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 FakeTunnels struct {
	Fake *FakeInletsV1alpha1
	ns   string
}
var tunnelsResource = schema.GroupVersionResource{Group: "inlets.inlets.dev", Version: "v1alpha1", Resource: "tunnels"}
var tunnelsKind = schema.GroupVersionKind{Group: "inlets.inlets.dev", Version: "v1alpha1", Kind: "Tunnel"}
func (c *FakeTunnels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Tunnel, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(tunnelsResource, c.ns, name), &v1alpha1.Tunnel{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Tunnel), err
}
func (c *FakeTunnels) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TunnelList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(tunnelsResource, tunnelsKind, c.ns, opts), &v1alpha1.TunnelList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.TunnelList{ListMeta: obj.(*v1alpha1.TunnelList).ListMeta}
	for _, item := range obj.(*v1alpha1.TunnelList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeTunnels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(tunnelsResource, c.ns, opts))
}
func (c *FakeTunnels) Create(ctx context.Context, tunnel *v1alpha1.Tunnel, opts v1.CreateOptions) (result *v1alpha1.Tunnel, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(tunnelsResource, c.ns, tunnel), &v1alpha1.Tunnel{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Tunnel), err
}
func (c *FakeTunnels) Update(ctx context.Context, tunnel *v1alpha1.Tunnel, opts v1.UpdateOptions) (result *v1alpha1.Tunnel, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(tunnelsResource, c.ns, tunnel), &v1alpha1.Tunnel{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Tunnel), err
}
func (c *FakeTunnels) UpdateStatus(ctx context.Context, tunnel *v1alpha1.Tunnel, opts v1.UpdateOptions) (*v1alpha1.Tunnel, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(tunnelsResource, "status", c.ns, tunnel), &v1alpha1.Tunnel{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Tunnel), err
}
func (c *FakeTunnels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(tunnelsResource, c.ns, name), &v1alpha1.Tunnel{})
	return err
}