Git Product home page Git Product logo

Comments (2)

mikemar10 avatar mikemar10 commented on September 4, 2024

+1

from swiftly.

gholt avatar gholt commented on September 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.