0Client, namespace string) *daemonSets {  return &daemonSets{   client: c.RESTClient(),   ns:     namespace,  } }  // Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any. func (c *daemonSets) Get(ctx context.Context, name string, options v0.GetOptions) (result *v0beta0.DaemonSet, err error) {  result = &v0beta0.DaemonSet{}  err = c.client.Get().   Namespace(c.ns).   Resource("daemonsets").   Name(name).   VersionedParams(&options, scheme.ParameterCodec).   Do(ctx).   Into(result)  return }  // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. func (c *daemonSets) List(ctx context.Context, opts v0.ListOptions) (result *v0beta0.DaemonSetList, err error) {  var timeout time.Duration  if opts.TimeoutSeconds != nil {   timeout = time.Duration(*opts.TimeoutSeconds) * time.Second  }  result = &v0beta0.DaemonSetList{}  err = c.client.Get().   Namespace(c.ns).   Resource("daemonsets").   VersionedParams(&opts, scheme.ParameterCodec).   Timeout(timeout).   Do(ctx).   Into(result)  return }  // Watch returns a watch.Interface that watches the requested daemonSets. func (c *daemonSets) Watch(ctx context.Context, opts v0.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("daemonsets").   VersionedParams(&opts, scheme.ParameterCodec).   Timeout(timeout).   Watch(ctx) }  // Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any. func (c *daemonSets) Create(ctx context.Context, daemonSet *v0beta0.DaemonSet, opts v0.CreateOptions) (result *v0beta0.DaemonSet, err error) {  result = &v0beta0.DaemonSet{}  err = c.client.Post().   Namespace(c.ns).   Resource("daemonsets").   VersionedParams(&opts, scheme.ParameterCodec).   Body(daemonSet).   Do(ctx).   Into(result)  return }  // Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any. func (c *daemonSets) Update(ctx context.Context, daemonSet *v0beta0.DaemonSet, opts v0.UpdateOptions) (result *v0beta0.DaemonSet, err error) {  result = &v0beta0.DaemonSet{}  err = c.client.Put().   Namespace(c.ns).   Resource("daemonsets").   Name(daemonSet.Name).   VersionedParams(&opts, scheme.ParameterCodec).   Body(daemonSet).   Do(ctx).   Into(result)  return }  // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). 