summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix context sensitive help for info and tempurl2.2.0Alistair Coles2014-07-211-22/+9
| | | | | | | | | | Make it so that swift <cmd> --help will print the info subcommand help for info and tempurl just like all the other subcommands. Also add unit tests to verify subcommand help. Change-Id: Id3666dcf72a9727fbfda2f74c23293ada1c53aa0
* Merge "Allow to specify storage policy when uploading objects"Jenkins2014-07-211-6/+42
|\
| * Allow to specify storage policy when uploading objectsYuan Zhou2014-07-171-6/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Client already supports -H/--header option when creating container or uploading objects. This patch extends this option to support Storage Policy. e.g., swift post con -H 'X-Storage-Policy:p1' This creates one container 'con' with storage policy 'p1'. swift upload con obj -H 'X-Storage-Policy:p2' This creates container 'con' with storage policy 'p2' and uploads object 'obj' into it. Also fixes segmented uploading to non-default storage policy container When uploading large objects with segmentation to container with non-default storage policy, there will be another 'xxx_segments' container created, but with the default storage policy. This results all the segments to be stored with the wrong policy. This patch is for the Storage Policy feature, and also compatible with old versions w/o Storage Policy support. Change-Id: I5c19e90604a0bcf2c85e1732b8a0b97ae6801994
* | Merge "Adding Swift Temporary URL support"Jenkins2014-07-181-2/+46
|\ \ | |/ |/|
| * Adding Swift Temporary URL supportJosh Gachnang2014-07-111-2/+46
| | | | | | | | | | | | | | | | | | | | Temporary URLs allow a user to sign an object URL with a shared secret to so that the object can be downloaded without auth for a specified amount of time. http://docs.openstack.org/trunk/config-reference/content/object-storage-tempurl.html Change-Id: Ife0b6c98c975e074d4dad0a31145573b784747c5
* | Add context sensitive helpMark Seger2014-06-251-1/+22
|/ | | | Change-Id: I9aaadbaba2c43a12a83f8200eaaa96f48c52028e
* Merge "fixed typos found by RETF rules"Jenkins2014-05-161-2/+2
|\
| * fixed typos found by RETF rulesChristian Berendt2014-05-121-2/+2
| | | | | | | | | | | | rules are avaialble at https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos Change-Id: I98b6e46cb84962ffdac02e9007b5ad3b30bc2817
* | Add "." for help stringsAndreas Jaeger2014-05-081-8/+8
|/ | | | | | | | | The command descriptions did not include a "." at the end but the argument description does. Add "." everywhere. Also capitalize and add "." for parameter of capabilities. Change-Id: I2355e0d0c38170d669c8e568361faf4b68203d16
* Use quote/unquote from six module for py3Chmouel Boudjnah2014-04-171-1/+1
| | | | Change-Id: I42cff32fbf3febd6dd6a7171b9214f93b4414f9a
* Update help message to specify unit of --segment-size option.Florent Flament2014-04-041-6/+7
| | | | | Change-Id: Ic3f9a733329c19c4e0bb85676da28a8d1d74232b Closes-Bug: 1302566
* Merge "Removed usage of tuple unpacking in parameters."Jenkins2014-04-021-2/+4
|\
| * Removed usage of tuple unpacking in parameters.Alex Gaynor2014-03-301-2/+4
| | | | | | | | | | | | Replaced it with traditional tuple unpacking. Needed for Python 3 support. Change-Id: I714f32859f9b1ec7216eae777ea8968b5826af3b
* | Replaced print statements with print function.Alex Gaynor2014-03-301-11/+21
|/ | | | | | This is needed for Python3 compatibility. Change-Id: Iadd21e4b3a936b601a69f1db2aba8e1597f13fc3
* Make bin/swift testable part 1Christian Schwede2014-03-251-0/+1510
To make bin/swift importable for testing it needs to be renamed/moved. The final idea is to move it to swiftclient/shell.py and add only a stub in bin/swift to import swiftclient/shell.py. However, doing this in a single step makes reviewing very hard, because now there are > 1400 lines deleted from bin/swift and added to swiftclient/shell.py - Gerrit doesn't detect the moved file. For example: https://review.openstack.org/#/c/73710/2/ This patch first moves the code to swiftclient/shell.py and uses setup.py/cfg to create the stub file in bin/swift. A follow up (https://review.openstack.org/#/c/76489/) will then add the stub itself in bin/swift (and remove the entry in setup.py). The change to tox.ini is related to bug 1290562 and can be removed in the future. Change-Id: Id86392ccaf09e1d80a5d808fb49827d6d18c2588