(daemonSet *v0.DaemonSet) (result *v0.DaemonSet, err error) {  result = &v0.DaemonSet{}  err = c.client.Put().   Namespace(c.ns).   Resource("daemonsets").   Name(daemonSet.Name).   SubResource("status").   Body(daemonSet).   Do(context.TODO()).   Into(result)  return }  // Delete takes name of the daemonSet and deletes it. Returns an error if one occurs. func (c *daemonSets) Delete(name string, options *metav0.DeleteOptions) error {  return c.client.Delete().   Namespace(c.ns).   Resource("daemonsets").   Name(name).   Body(options).   Do(context.TODO()).   Error() }  // DeleteCollection deletes a collection of objects. func (c *daemonSets) DeleteCollection(options *metav0.DeleteOptions, listOptions metav0.ListOptions) error {  var timeout time.Duration  if listOptions.TimeoutSeconds != nil {   timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second  }  return c.client.Delete().   Namespace(c.ns).   Resource("daemonsets").   VersionedParams(&listOptions, scheme.ParameterCodec).   Timeout(timeout).   Body(options).   Do(context.TODO()).   Error() }  // Patch applies the patch and returns the patched daemonSet. func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v0.DaemonSet, err error) {  result = &v0.DaemonSet{}  err = c.client.Patch(pt).   Namespace(c.ns).   Resource("daemonsets").   SubResource(subresources...).   Name(name).   Body(data).   Do(