func (c *stackSets) Update(ctx context.Context, stackSet *v1.StackSet, opts metav1.UpdateOptions) (result *v1.StackSet, err error) {
	result = &v1.StackSet{}
	err = c.client.Put().
		Namespace(c.ns).
		Resource("stacksets").
		Name(stackSet.Name).
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(stackSet).
		Do(ctx).
		Into(result)
	return
}
Update takes the representation of a stackSet and updates it. Returns the server's representation of the stackSet, and an error, if there is any.
package v1
import (
	"context"
	"time"
	v1 "github.com/zalando-incubator/stackset-controller/pkg/apis/zalando.org/v1"
	scheme "github.com/zalando-incubator/stackset-controller/pkg/client/clientset/versioned/scheme"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)
type StackSetsGetter interface {
	StackSets(namespace string) StackSetInterface
}
type StackSetInterface interface {
	Create(ctx context.Context, stackSet *v1.StackSet, opts metav1.CreateOptions) (*v1.StackSet, error)
	Update(ctx context.Context, stackSet *v1.StackSet, opts metav1.UpdateOptions) (*v1.StackSet, error)
	UpdateStatus(ctx context.Context, stackSet *v1.StackSet, opts metav1.UpdateOptions) (*v1.StackSet, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.StackSet, error)
	List(ctx context.Context, opts metav1.ListOptions) (*v1.StackSetList, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.StackSet, err error)
	StackSetExpansion
}
type stackSets struct {
	client rest.Interface
	ns     string
}
func newStackSets(c *ZalandoV1Client, namespace string) *stackSets {
	return &stackSets{
		client: c.RESTClient(),
		ns:     namespace,
	}
}
func (c *stackSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.StackSet, err error) {
	result = &v1.StackSet{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("stacksets").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}
func (c *stackSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StackSetList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1.StackSetList{}
	err = c.client.Get().
		Namespace(c.ns).
		Resource("stacksets").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}
func (c *stackSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Namespace(c.ns).
		Resource("stacksets").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}
func (c *stackSets) Create(ctx context.Context, stackSet *v1.StackSet, opts metav1.CreateOptions) (result *v1.StackSet, err error) {
	result = &v1.StackSet{}
	err = c.client.Post().
		Namespace(c.ns).
		Resource("stacksets").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(stackSet).
		Do(ctx).
		Into(result)
	return
}