Feature #3732

Give the option of a json-formated output

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

Status:Closed Start date:05/15/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:1.00 hour

Description

This feature concerns the operations that return an output in the form of a list or a dict.
A runtime flag option could be added to these operations, e.g. --json
If this option is set, the operation will return a json-formated text instead of the
usual console-oriented human-readable results.


Related issues

related to ./kamaki - Feature #3756: Add optional output to kamaki calls that create stuff Closed 05/17/2013 05/24/2013

Associated revisions

Revision 0399ac7e
Added by Stavros Sachtouris almost 11 years ago

Add json formated output for file list

- Implement a print_json auxiliary method in kamaki.cli.utils
- Add a (j, --json) flag to file list
When -j or --json flag is on, only json is printed

Refs: #3732

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 cd295a1d
Added by Stavros Sachtouris almost 11 years ago

Add json/optional outputs to server commands

Refs: #3732

Revision 1b73b4c1
Added by Stavros Sachtouris almost 11 years ago

Add json/optional responses to flavor/network cmds

Refs: #3732

Revision 6dfd55cb
Added by Stavros Sachtouris almost 11 years ago

Add json/optional output to astakos cmds

Refs: #3732

Revision 545c6c29
Added by Stavros Sachtouris almost 11 years ago

Implement an optional json output 4 outputing cmds

Refs: #3732

History

#1 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 0 to 30
  • Estimated time set to 1.00

#2 Updated by Stavros Sachtouris almost 11 years ago

  • % Done changed from 30 to 90

While implementing this feature, some minor bugs and unnessecary differences between similar commands were also fixed

#3 Updated by Stavros Sachtouris almost 11 years ago

Stavros Sachtouris wrote:

While implementing this feature, some minor bugs and unnecessary differences between similar commands were also fixed

#4 Updated by Stavros Sachtouris almost 11 years ago

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

Also available in: Atom PDF