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

7 commits

Author SHA1 Message Date
Jonas Pfenniger
f6d361b2e2 AWS | storage: big refactor
Logics have been centralised:

* region to hostname
* url generation
* signature
* chaning scheme also changes the port

During the process a couple of inconsistencies have also
been fixed.

Known limitations:

When using the @endpoint with a custom port you need to specify the port
when using get_object_http_url or get_object_https_url.

When using bucket names that contain dots outside of us-east-1 make sure to
access it with the same region in your AWS::Storage.
2013-04-16 23:30:35 +01:00
Weston Platter
47df9f1b69 [docs::aws::storage] standardized return format
for key with values,
    # @return variable [data_type]:
  for values,
    # * variable [data_type] - description of value
2013-01-02 19:42:54 -06:00
Weston Platter
c6f0988d24 [docs::aws::storage] reformatted delete requests 2012-12-31 20:37:10 -06:00
John Parker
2c38747fa9 use CGI.escapeHTML instead of CGI.escape
CGI.escape creates URL-safe encodings, but we need XML-safe encodings.
If the key name has a "/" in it (as for a directory structure) it gets
replaced with a URL-safe "%2F" which S3 treats as a literal part of the
key name. We only need to escape the parts of the key that could result
in malformed XML.
2012-12-24 09:37:14 -08:00
Timur Alperovich
fd1acc69bf Added versioned delete_multiple_objects support
Added the VersionId support in the delete_multiple_objects method.
Assume that all object versions are specified in the versionId hash.
The hash maps an object name to an array of versions. If a multiple
versions are to be deleted, the caller must insert the object
multiple times into the object_names array and insert all the versions
into the array associated with that object_name.
2012-11-11 17:23:15 -08:00
Garret Alfert
dfc2026f45 [aws|storage] Add mock for Fog::Storage::AWS#delete_multiple_objects 2012-08-20 00:33:40 -07:00
Garret Alfert
357b85f34d [aws|storage] Add Fog::Storage::AWS#delete_multiple_objects 2012-08-20 00:33:40 -07:00