Feature #3756

Add optional output to kamaki calls that create stuff

Added by Stavros Sachtouris almost 11 years ago. Updated almost 11 years ago.

Status:Closed Start date:05/17/2013
Priority:Medium Due date:05/24/2013
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 7.00 hours
Target version:v0.9 Estimated time:8.00 hours

Description

Examples: kamaki file mkdir

Now: in success it prints nothing

Desired: kamaki file mkdir --with-output should print the response headers

Side effect: this modification will enrich some kamaki clients methods as well, by making them return the retrieved information


Related issues

related to ./kamaki - Feature #3732: Give the option of a json-formated output Closed 05/15/2013 05/24/2013

Associated revisions

Revision 94bedc5b
Added by Stavros Sachtouris almost 11 years ago

Add output support to create methods

Refs: #3756 #3732

In kamaki.clients
-------------------
- storage.create_directory returns response headers
- implement pithos.create_container

In kamaki.cli.pithos
-------------------
- add flag --with_output for optional output
- add (j, --json) flag for optional json-formated output
apply these changes to file_mkdir, file_touch, file_create

Revision 55c75058
Added by Stavros Sachtouris almost 11 years ago

Add output to file copy/move

Also, kamaki.clients.pithos.copy/move_object returns response headers

Refs: #3756 #3732

Revision 5655d560
Added by Stavros Sachtouris almost 11 years ago

Update file operations and their output

Refs: #3756 #3732

- Add optional output for file methods: mkdir, touch, create, move, create,
copy, move, append, delete, purge, info, meta, upload
- Transliterate permissions and metadata methods to apear as get/set/delete
command subgroups
e.g. kamaki file metadata set ...
instead of
kamaki file setmeta
- Add method create_container to pithos client, add unit and functional tests

Revision f5f35422
Added by Stavros Sachtouris almost 11 years ago

Apply option outputs to image commands + renames

- Add image.add_member missing content-length header
- Rename image-[add|del]member commands to members-[add|delete]
- Remove update option from image-register
- In image-compute split properties to properties-list and properties-get
- Add optional output to methods * image: unregister, members add/delete/set * image compute: delete, properties delete
- Transliterate methods to list-get-set-delete command groups: * image: members, member * image compute: properties

Refs :#3756 #3732

Revision 395fbf9e
Added by Stavros Sachtouris almost 11 years ago

Update documentation to reflect changes in output

Refs: #3756

History

#1 Updated by Stavros Sachtouris almost 11 years ago

  • Due date changed from 05/20/2013 to 05/24/2013
  • % Done changed from 10 to 50

#2 Updated by Stavros Sachtouris almost 11 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF