Comments (2)
+1
from swiftly.
This seems to work already, at least on master which will become release 2.00 soon.
Dynamic Segmented Object:
$ dd if=/dev/urandom bs=524288 count=5 of=2.5m
5+0 records in
5+0 records out
2621440 bytes (2.6 MB) copied, 0.235589 s, 11.1 MB/s
$ swiftly -v put test/object -s 1048576 -hx-delete-after:86400 -i 2.5m
VERBOSE 0.01 1 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.01 1 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.02 1 > PUT /v1/MossoCloudFS_<redacted>/test_segments Transfer-Encoding: chunked User-Agent: Swiftly v1.99 X-Auth-Token: <redacted>
VERBOSE 0.05 1 < 201 Created
VERBOSE 0.05 1 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000000 Content-Length: 1048576 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.05 2 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.05 2 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.05 3 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.05 3 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.06 3 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000002 Content-Length: 524288 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.07 2 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000001 Content-Length: 1048576 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.25 1 < 201 Created
VERBOSE 0.28 2 < 201 Created
VERBOSE 0.38 3 < 201 Created
VERBOSE 0.38 1 > PUT /v1/MossoCloudFS_<redacted>/test/object Content-Length: 0 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400 X-Object-Manifest: test_segments/object/1387588694.0/2621440/ X-Object-Meta-Mtime: 1387588694.000000
VERBOSE 0.48 1 < 201 Created
$ swiftly head test/object | grep ^X-Delete-At:
X-Delete-At: 1387675120
$ swiftly for test_segments do head '<item>' | grep ^X-Delete-At:
X-Delete-At: 1387675120
X-Delete-At: 1387675120
X-Delete-At: 1387675120
Static Segmented Object:
$ dd if=/dev/urandom bs=524288 count=5 of=2.5m
5+0 records in
5+0 records out
2621440 bytes (2.6 MB) copied, 0.235589 s, 11.1 MB/s
$ swiftly -v put test/object -s s1048576 -hx-delete-after:86400 -i 2.5m
VERBOSE 0.01 1 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.01 1 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.02 1 > PUT /v1/MossoCloudFS_<redacted>/test_segments Transfer-Encoding: chunked User-Agent: Swiftly v1.99 X-Auth-Token: <redacted>
VERBOSE 0.04 1 < 201 Created
VERBOSE 0.04 1 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000000 Content-Length: 1048576 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.05 2 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.05 2 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.05 3 Read auth response values from cache '/tmp/<redacted>.swiftly'.
VERBOSE 0.05 3 Establishing HTTPS connection to snet-storage101.iad3.clouddrive.com
VERBOSE 0.07 2 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000001 Content-Length: 1048576 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.09 3 > PUT /v1/MossoCloudFS_<redacted>/test_segments/object/1387588694.0/2621440/00000002 Content-Length: 524288 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400
VERBOSE 0.20 1 < 201 Created
VERBOSE 0.28 2 < 201 Created
VERBOSE 0.30 3 < 201 Created
VERBOSE 0.30 1 > PUT /v1/MossoCloudFS_<redacted>/test/object?multipart-manifest=put Content-Length: 395 User-Agent: Swiftly v1.99 X-Auth-Token: <redacted> X-Delete-After: 86400 X-Object-Meta-Mtime: 1387588694.000000
VERBOSE 0.46 1 < 201 Created
$ swiftly head test/object | grep ^X-Delete-At:
X-Delete-At: 1387675715
$ swiftly for test_segments do head '<item>' | grep ^X-Delete-At:
X-Delete-At: 1387675714
X-Delete-At: 1387675714
X-Delete-At: 1387675714
I also tested with X-Delete-At in place of X-Delete-After and it worked fine too.
from swiftly.
Related Issues (20)
- Release 2.04
- swiftly trans shouldn't require credentials
- Incorrect exit code when downloading a Static Large Object with a missing segment
- Returning Transaction IDs when in verbose mode HOT 1
- Segmented object downloads
- eventlet and the sleep attribute HOT 3
- CDN URLs
- Psuedo directory / object name collision handling HOT 1
- -n/d flag on gets HOT 1
- Downloading all objects in an account
- Handle directory objects with get --all-objects
- [feature request] server side copy HOT 1
- Authenticate with TenantID and AuthToken
- README needs examples - pretty please HOT 4
- Cannot use swiftly for openstack swift HOT 10
- Freezing while downloading big files HOT 1
- Feature: warning message for snet
- Please for below issue
- Please for below issue
- "No Auth URL has been given."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftly.