func (c *FakeBuilders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BuilderList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(buildersResource, buildersKind, c.ns, opts), &v1alpha1.BuilderList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.BuilderList{ListMeta: obj.(*v1alpha1.BuilderList).ListMeta}
	for _, item := range obj.(*v1alpha1.BuilderList).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 Builders that match those selectors.
package fake
import (
	"context"
	v1alpha1 "github.com/pivotal/kpack/pkg/apis/build/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 FakeBuilders struct {
	Fake *FakeKpackV1alpha1
	ns   string
}
var buildersResource = schema.GroupVersionResource{Group: "kpack.io", Version: "v1alpha1", Resource: "builders"}
var buildersKind = schema.GroupVersionKind{Group: "kpack.io", Version: "v1alpha1", Kind: "Builder"}
func (c *FakeBuilders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Builder, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(buildersResource, c.ns, name), &v1alpha1.Builder{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Builder), err
}