OpenStax.Swift v0.2.0 OpenStax.Swift.API.Container

This module is responsible for wrapping HTTP OpenStax.Swift.Request.requests sent to Swift when it comes to container handling.

Summary

Functions

Deletes an empty container

Shows container metadata, including the number of objects and the total bytes of all objects stored in the container

Shows details for a container and lists objects, sorted by name, in the container

Creates, updates, or deletes custom metadata for a container

Functions

create(endpoint_id, container, metadata \\ nil)

Creates a container.

See http://developer.openstack.org/api-ref-objectstorage-v1.html#createContainer

delete(endpoint_id, container)

Deletes an empty container.

See http://developer.openstack.org/api-ref-objectstorage-v1.html#deleteContainer

get_meta(endpoint_id, container)

Shows container metadata, including the number of objects and the total bytes of all objects stored in the container.

See http://developer.openstack.org/api-ref-objectstorage-v1.html#showContainerMeta

read(endpoint_id, container)

Shows details for a container and lists objects, sorted by name, in the container.

See http://developer.openstack.org/api-ref-objectstorage-v1.html#showContainerDetails

set_meta(endpoint_id, container, metadata \\ nil)

Creates, updates, or deletes custom metadata for a container.

See http://developer.openstack.org/api-ref-objectstorage-v1.html#updateContainerMeta