code: func (c *Client) UploadManifest(m *api.Manifest, toEncrypt bool) (string, error) {
  	data, err := json.Marshal(m)
  	if err != nil {
  		return "", err
  	}
  	return c.UploadRaw(bytes.NewReader(data), int64(len(data)), toEncrypt)
  }
docs: // UploadManifest uploads the given manifest to swarm