1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Alex Tambellini
dedd6e71b1 Documentation error for delete_object 2012-08-17 10:56:39 -03:00
James Healy
15596e486d Rackspace Storage: fix expiring URLs that contain a hyphen
* props to Nathan Wenneker for pointing out the issue
* added specs to ensure objects with a variety of characters are
  signed correctly
2012-08-05 17:02:30 +10:00
James Healy
ac068a470d Rackspace Storage: a backslash shouldn't be escaped when signing URLS 2012-06-12 19:11:10 +10:00
James Healy
179fd51038 Rackspace Storage: new request, post_set_meta_temp_url_key
* Sets the account-wide Temp URL Key
* The key is used to sign any expiring URLs to otherwise private objects
* Once the key has been set, you need to pass it in when creating a new
  Rackspace Storage object like so:

      storage = Fog::Storage.new(:rackspace_username     => 'username',
                                 :rackspace_api_key      => 'api_key',
                                 :rackspace_temp_url_key => 'secret-key',
                                 :provider               => 'Rackspace')

* After this has been set, create an expiring URL like so:

      storage.get_object_https_url("container","object_key", Time.now + 60)
2012-06-12 18:51:12 +10:00
James Healy
d2b640ef15 Rackspace Storage: new request, get_object_https_url
* returns a signed, expiring URL for the requested object
* useful for providing temporary public access to an otherwise private
  object
* same function as the request of the same name for AWS Storage

* Create an expiring URL like so:

    storage = Fog::Storage.new(:rackspace_username     => 'username',
                               :rackspace_api_key      => 'api_key',
                               :rackspace_temp_url_key => 'secret-key',
                               :provider               => 'Rackspace')
    storage.get_object_https_url("container","object_key", Time.now + 60)
2012-06-12 18:51:04 +10:00
geemus
f961d95ff6 [storage] update get_object requests to use excon response_blocks 2012-03-17 14:51:56 -05:00
geemus
fcd504c30a [storage] fixes for deprecated implicit block usage to excon requests 2012-03-17 14:28:31 -05:00
Benjamin Manns
4a97db0f2b [rackspace|storage] Add copy_object request. 2012-02-16 14:44:31 -05:00
geemus
a1fe973bdc [Rackspace|Storage] set put_object to idempotent 2012-02-14 11:29:58 -06:00
geemus
387f374d2c [rackspace|storage] fix broken model paths
closes #516
2011-09-20 10:15:03 -05:00
H. Wade Minter
934ff8a993 Better URL escaping for Rackspace Cloud Files.
URI.escape doesn't encode question marks properly, CGI.escape doesn't encode
spaces properly.  So we create an escape class method for Fog::Rackspace that
does the CGI.escape methods, only encoding spaces as %20.

This makes things work properly with Rackspace Cloud Files.
2011-09-16 23:52:55 -04:00
geemus
ff6e439727 [storage|rackspace] move rackspace storage to its own shared area (namespacing should probably be corrected) 2011-08-24 14:12:29 -05:00
geemus
ac480ad928 [storage] consolidate 2011-01-07 15:34:20 -08:00
geemus
0a9bb3b553 [storage] shared tests 2010-11-04 11:12:44 -07:00
geemus
868ace8347 [rackspace|cdn&storage] split cdn into it's own service 2010-11-01 11:50:30 -07:00
geemus
8a651fe1c6 [rackspace|storage] first pass of cdn support 2010-10-20 16:58:15 -07:00
geemus
ddabb17ee9 [rackspace][storage] allow for passing options to specify headers on put 2010-10-07 11:10:01 -07:00
geemus
a5411d8cf9 [rackspace] rename files/servers to storage/compute 2010-09-08 13:50:23 -07:00