OpenStax.Swift v0.2.0 OpenStax.Swift.API.Object
This module is responsible for wrapping HTTP requests sent to Swift when it comes to object handling.
Summary
Functions
Copies an object to another object in the object store
Creates an object with data content and metadata, or replaces an existing object with data content and metadata
Creates or updates Dynamic Large Object manifest
Creates or updates Static Large Object manifest
Permanently deletes an object from the object store
Shows object metadata
Downloads the object content and gets the object metadata
Creates or updates object metadata
Functions
Copies an object to another object in the object store.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#copyObject
Creates an object with data content and metadata, or replaces an existing object with data content and metadata.
Body can be either string or {:file, path_to_the_file}
.
On success it returns {:ok, %{etag: "md5 hash of contents"}}
.
On error it returns {:error, reason}
.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#createOrReplaceObject
Creates or updates Dynamic Large Object manifest.
See http://docs.openstack.org/developer/swift/api/large_objects.html#dynamic-large-objects
Creates or updates Static Large Object manifest.
You have to pass information about segments that is a list of tuples
{container/object, etag, size_bytes}
in order that will compose the object.
See http://docs.openstack.org/developer/swift/api/large_objects.html#static-large-objects
Permanently deletes an object from the object store.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#deleteObject
Shows object metadata.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#showObjectMeta
Downloads the object content and gets the object metadata.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#showObject
Creates or updates object metadata.
See http://developer.openstack.org/api-ref-objectstorage-v1.html#updateObjectMeta