Skip to content

Commit

Permalink
doc/api/s3 <-chipping away at objectops and clean up. Added Copy Object.
Browse files Browse the repository at this point in the history
doc/source <-fixed a typo, updates for installing on precise, rm $ from cmds
doc/start  <-replaced clone link with tarball link. Link to Ceph Source Code.


Signed-off-by: John Wilkins <[email protected]>
  • Loading branch information
John committed May 23, 2012
1 parent ab04d95 commit 3956cb8
Show file tree
Hide file tree
Showing 10 changed files with 116 additions and 105 deletions.
6 changes: 3 additions & 3 deletions doc/api/s3/commons.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
===============
Common Entities
===============
=================
Common Entities
=================

.. toctree::
:maxdepth: -1
Expand Down
51 changes: 27 additions & 24 deletions doc/api/s3/objectops.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,37 @@ Syntax
Request Headers
~~~~~~~~~~~~~~~

+--------------------------------------+---------------+----------------+------------+
| Name | Description | Valid Values | Required |
+======================================+===============+================+============+
| **x-amz-copy-source** | | | Yes |
+--------------------------------------+---------------+----------------+------------+
| **x-amz-acl** | | | No |
+--------------------------------------+---------------+----------------+------------+
| **x-amz-copy-if-modified-since** | | | No |
+--------------------------------------+---------------+----------------+------------+
| **x-amz-copy-if-unmodified-since** | | | No |
+--------------------------------------+---------------+----------------+------------+
| **x-amz-copy-if-match** | | | No |
+--------------------------------------+---------------+----------------+------------+
| **x-amz-copy-if-none-match** | | | No |
+--------------------------------------+---------------+----------------+------------+
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| Name | Description | Valid Values | Required |
+======================================+=================================================+========================+============+
| **x-amz-copy-source** | The source bucket name + object name. | {bucket}/{obj} | Yes |
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| **x-amz-acl** | A canned ACL. | ``private``, | No |
| | | ``public-read``, | |
| | | ``public-read-write``, | |
| | | ``authenticated-read`` | |
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| **x-amz-copy-if-modified-since** | Copies only if modified since the timestamp. | Timestamp | No |
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| **x-amz-copy-if-unmodified-since** | Copies only if unmodified since the timestamp. | Timestamp | No |
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| **x-amz-copy-if-match** | Copies only if object ETag matches ETag. | Entity Tag | No |
+--------------------------------------+-------------------------------------------------+------------------------+------------+
| **x-amz-copy-if-none-match** | Copies only if object ETag doesn't match. | Entity Tag | No |
+--------------------------------------+-------------------------------------------------+------------------------+------------+

Response Entities
~~~~~~~~~~~~~~~~~

+------------------------+-------------+---------------+
| Name | Type | Description |
+========================+=============+===============+
| **CopyObjectResult** | Container | |
+------------------------+-------------+---------------+
| **LastModified** | Date | |
+------------------------+-------------+---------------+
| **Etag** | String | |
+------------------------+-------------+---------------+
+------------------------+-------------+-----------------------------------------------+
| Name | Type | Description |
+========================+=============+===============================================+
| **CopyObjectResult** | Container | A container for the response elements. |
+------------------------+-------------+-----------------------------------------------+
| **LastModified** | Date | The last modified date of the source object. |
+------------------------+-------------+-----------------------------------------------+
| **Etag** | String | The ETag of the new object. |
+------------------------+-------------+-----------------------------------------------+

Remove Object
-------------
Expand Down
4 changes: 2 additions & 2 deletions doc/source/build-prerequisites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Ubuntu Requirements
-------------------

- ``uuid-dev``
- ``libkeytutils-dev``
- ``libkeyutils-dev``
- ``libgoogle-perftools-dev``
- ``libatomic-ops-dev``
- ``libaio-dev``
Expand All @@ -58,7 +58,7 @@ Ubuntu Requirements
Execute ``sudo apt-get install`` for each dependency that isn't installed on
your host. ::

sudo apt-get install uuid-dev libkeytutils-dev libgoogle-perftools-dev libatomic-ops-dev libaio-dev libgdata-common libgdata13
sudo apt-get install uuid-dev libkeyutils-dev libgoogle-perftools-dev libatomic-ops-dev libaio-dev libgdata-common libgdata13

Debian
------
Expand Down
74 changes: 74 additions & 0 deletions doc/source/clone-source.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
=========================================
Cloning the Ceph Source Code Repository
=========================================

To check out the Ceph source code, you must have ``git`` installed
on your local host. To install ``git``, execute::

sudo apt-get install git

You must also have a ``github`` account. If you do not have a
``github`` account, go to `github.com <http://github.com>`_ and register.
Follow the directions for setting up git at
`Set Up Git <http://help.github.com/linux-set-up-git/>`_.

Generate SSH Keys
-----------------
You must generate SSH keys for github to clone the Ceph
repository. If you do not have SSH keys for ``github``, execute::

ssh-keygen

Get the key to add to your ``github`` account (the following example
assumes you used the default file path)::

cat .ssh/id_rsa.pub

Copy the public key.

Add the Key
-----------
Go to your your ``github`` account,
click on "Account Settings" (i.e., the 'tools' icon); then,
click "SSH Keys" on the left side navbar.

Click "Add SSH key" in the "SSH Keys" list, enter a name for
the key, paste the key you generated, and press the "Add key"
button.

Clone the Source
----------------
To clone the Ceph source code repository, execute::

git clone [email protected]:ceph/ceph.git

Once ``git clone`` executes, you should have a full copy of the Ceph
repository.

Clone the Submodules
--------------------
Before you can build Ceph, you must navigate to your new repository and get
the ``init`` submodule and the ``update`` submodule::

cd ceph
git submodule init
git submodule update

.. tip:: Make sure you maintain the latest copies of these submodules.
Running ``git status`` will tell you if the submodules are out of date::

git status

Choose a Branch
---------------
Once you clone the source code and submodules, your Ceph repository
will be on the ``master`` branch by default, which is the unstable
development branch. You may choose other branches too.

- ``master``: The unstable development branch.
- ``stable``: The bugfix branch.
- ``next``: The release candidate branch.

::

git checkout master
43 changes: 0 additions & 43 deletions doc/source/cloning-the-ceph-source-code-repository.rst

This file was deleted.

29 changes: 2 additions & 27 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
==========================
Contributing Source Code
==========================
If you are making source contributions, you must be added to the Ceph
project on github. You must also generate keys and add them to your
github account.

Generate SSH Keys
-----------------
You must generate SSH keys for github to clone the Ceph
repository. If you do not have SSH keys for ``github``, execute::

ssh-keygen -d

Get the key to add to your ``github`` account (the following example
assumes you used the default file path)::

cat .ssh/id_dsa.pub

Copy the public key.

Add the Key
-----------
Go to your your ``github`` account,
click on "Account Settings" (i.e., the 'tools' icon); then,
click "SSH Keys" on the left side navbar.

Click "Add SSH key" in the "SSH Keys" list, enter a name for
the key, paste the key you generated, and press the "Add key"
button.
If you are making source contributions to the Ceph project,
you must be added to the Ceph project on github.
File renamed without changes.
4 changes: 2 additions & 2 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ will save you time.
.. toctree::

Prerequisites <build-prerequisites>
Get a Tarball <downloading-a-ceph-release>
Clone the Source <cloning-the-ceph-source-code-repository>
Get a Tarball <get-tarballs>
Clone the Source <clone-source>
Build the Source <building-ceph>
Build a Package <build-packages>
Contributing Code <contributing>
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ These are exciting times in the Ceph community! Get involved!
| | requests using the Bug Tracker_. | |
+-----------------+-------------------------------------------------+-----------------------------------------------+
| **Source Code** | If you would like to participate in | |
| | development, bug fixing, or if you just want | - http://github.com:ceph/ceph.git |
| | the very latest code for Ceph, you can get it | - ``git clone [email protected]:ceph/ceph.git`` |
| | at http://github.com. | |
| | development, bug fixing, or if you just want | - http://github.com:ceph/ceph |
| | the very latest code for Ceph, you can get it | - http://ceph.com/download |
| | at http://github.com. See `Ceph Source Code`_ | |
| | for details on cloning from github. | |
+-----------------+-------------------------------------------------+-----------------------------------------------+
| **Support** | If you have a very specific problem, an | http://inktank.com |
| | immediate need, or if your deployment requires | |
Expand All @@ -46,3 +47,4 @@ These are exciting times in the Ceph community! Get involved!
.. _Tracker: http://tracker.newdream.net/projects/ceph
.. _Blog: http://ceph.com/community/blog/
.. _support: http://inktank.com
.. _Ceph Source Code: ../../source/
2 changes: 1 addition & 1 deletion doc/start/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ get started:

.. toctree::

Get Involved <get-involved-in-the-ceph-community>
Get Involved <get-involved>
quick-start

0 comments on commit 3956cb8

Please sign in to comment.