func (c *FakeApps) List(ctx context.Context, opts v1.ListOptions) (result *tsuruv1.AppList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(appsResource, appsKind, c.ns, opts), &tsuruv1.AppList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &tsuruv1.AppList{ListMeta: obj.(*tsuruv1.AppList).ListMeta}
	for _, item := range obj.(*tsuruv1.AppList).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 Apps that match those selectors.
package fake
import (
	"context"
	tsuruv1 "github.com/tsuru/tsuru/provision/kubernetes/pkg/apis/tsuru/v1"
	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 FakeApps struct {
	Fake *FakeTsuruV1
	ns   string
}
var appsResource = schema.GroupVersionResource{Group: "tsuru.io", Version: "v1", Resource: "apps"}
var appsKind = schema.GroupVersionKind{Group: "tsuru.io", Version: "v1", Kind: "App"}
func (c *FakeApps) Get(ctx context.Context, name string, options v1.GetOptions) (result *tsuruv1.App, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(appsResource, c.ns, name), &tsuruv1.App{})
	if obj == nil {
		return nil, err
	}
	return obj.(*tsuruv1.App), err
}