GithubHelp home page GithubHelp logo

tulios / nightcrawler_swift Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 8.0 190 KB

Like the X-Men nightcrawler this gem teleports your assets to a OpenStack Swift bucket/container

Home Page: https://rubygems.org/gems/nightcrawler_swift

License: MIT License

Ruby 100.00%
openstack-swift ruby

nightcrawler_swift's People

Contributors

aitherios avatar emerleite avatar ggarnier avatar gmpify avatar moret avatar roberto avatar smerritt avatar tulios avatar wandenberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nightcrawler_swift's Issues

CLI could support different output formats

Today the cli output is very functional, it delivers what it has. It would be nice to have different formats (through a --format, for example) that offers some pretty outputs

Allow max-age to define assets cache

Allow asset_max_age parameter to configure assets cache. It should send X-Object-Meta-Cache-Control:max-age= header when uploading the assets.

Region

Hi!
Would love for it to be able to change region for providers that have multiple datacentres.

Options to set the endpoints URLs

The authentication process returns the endpoints URLs, but it would be a good to feature to set them independently: admin URL, public URL and upload URL.

CLI should have a command to clear the cache

The cli stores a cache of the token to reuse as much as it can, but when you changes your configurations (for a different environment, for example) and that token is still valid you need to remove the cache file by yourself

Support Identity v3

Hi!

Since the release of Openstack Havana the preferred version of Identity to use is v3. Some cloud providers have now migrated to only supporting v3 for token generation to get support for domains.

Currently the Nightcrawler Swift does not work with providers that require support for Identity v3.

Would it be possible to add support for Identity v3 in this project as well?

invalidate nswift_cache when the connection fail

The CLI (nswift) when used with a wrong configuration file generate an invalid nswift_cache which causes miss configurations, it should remove the cache after an invalid request to authentication

CLI should allow to get the metadata of a object

From the time we have finished the issue #16 it would be nice to expose that feature through the cli interface. Something like:

nswift stat # shows the metadata of the bucket/container
nswift stat path/file.txt # shows the metadata of the object itself

Split asset_sync and assets:precompile

Sometimes we just need to synchronize the already compiled assets, it would be nice to have one task that just synchronizes the public dir and another that precompiles the assets and synchronizes.

CLI should have a command to show the object url

The public url is anything but not "friendly". We have some urls like:

http://my.host.env.company.com/v1/AUTH_some_sha1/bucket

It would be nice to get the public url of an object with a simple command, like:

nswift url-for robots.txt
# http://my.host.env.company.com/v1/AUTH_some_sha1/bucket/robots.txt

Retry before failing

It would be nice to have a configuration, let's say retry, that would allow us to configure the number of times to retry the request before failing

Command line tool

It would be nice to have a command line tool (nswift) to help with those basic commands, something like:

nswift list
nswift upload ~/files/cat.jpg
nswift dowload another-cat.jpg > ~/files/better-cat.jpg
nswift delete cat.jpg
nswift sync ~/files/precious

It could read a .nswift file from user home with the credentials (and a default bucket/container) and allow to override the bucket/container, something like:

nswift list -b cyclops

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.