Move existing content into the new standard structure
This patch rearranges and reformats existing content. Change-Id: I05088140504ba55abc724115828a7a977bd5c087
This commit is contained in:
31
doc/source/cli/index.rst
Normal file
31
doc/source/cli/index.rst
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
=============================
|
||||||
|
Command-line Tool Reference
|
||||||
|
=============================
|
||||||
|
|
||||||
|
In order to use the CLI, you must provide your OpenStack username,
|
||||||
|
password, tenant, and auth endpoint. Use the corresponding
|
||||||
|
configuration options (``--os-username``, ``--os-password``,
|
||||||
|
``--os-tenant-id``, and ``--os-auth-url``) or set them in environment
|
||||||
|
variables::
|
||||||
|
|
||||||
|
export OS_USERNAME=user
|
||||||
|
export OS_PASSWORD=pass
|
||||||
|
export OS_TENANT_ID=b363706f891f48019483f8bd6503c54b
|
||||||
|
export OS_AUTH_URL=http://auth.example.com:5000/v2.0
|
||||||
|
|
||||||
|
The command line tool will attempt to reauthenticate using your
|
||||||
|
provided credentials for every request. You can override this behavior
|
||||||
|
by manually supplying an auth token using ``--os-watcher-url`` and
|
||||||
|
``--os-auth-token``. You can alternatively set these environment
|
||||||
|
variables::
|
||||||
|
|
||||||
|
export OS_WATCHER_URL=http://watcher.example.org:9322/
|
||||||
|
export OS_AUTH_TOKEN=3bcc3d3a03f44e3d8377f9247b0ad155
|
||||||
|
|
||||||
|
Once you've configured your authentication parameters, you can run
|
||||||
|
``watcher help`` to see a complete listing of available commands.
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
|
||||||
|
watcher
|
||||||
|
openstack_cli
|
@@ -1,42 +1,15 @@
|
|||||||
Python bindings to the OpenStack Watcher API
|
Python bindings to the OpenStack Watcher API
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
This is a client for OpenStack Watcher API. There's :doc:`a Python API
|
This is a client for OpenStack Watcher API. There's a Python API
|
||||||
<api_v1>` (the :mod:`watcherclient` modules), and a :doc:`command-line script
|
(the :mod:`watcherclient` modules), and a command-line script
|
||||||
<cli>` (installed as :program:`watcher`). Each implements the entire
|
(installed as :program:`watcher`). Each implements the entire
|
||||||
OpenStack Watcher API.
|
OpenStack Watcher API.
|
||||||
|
|
||||||
You'll need credentials for an OpenStack cloud in order to use the watcher client.
|
|
||||||
|
|
||||||
|
|
||||||
Contents:
|
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 2
|
||||||
|
|
||||||
|
cli/index
|
||||||
|
reference/index
|
||||||
installation
|
installation
|
||||||
api_v1
|
|
||||||
cli
|
|
||||||
openstack_cli
|
|
||||||
contributing
|
contributing
|
||||||
|
|
||||||
Contributing
|
|
||||||
============
|
|
||||||
|
|
||||||
Code is hosted at `git.openstack.org`_. Submit bugs to the Watcher project on
|
|
||||||
`Launchpad`_. Submit code to the openstack/python-watcherclient project using
|
|
||||||
`Gerrit`_.
|
|
||||||
|
|
||||||
.. _git.openstack.org: https://git.openstack.org/cgit/openstack/python-watcherclient
|
|
||||||
.. _Launchpad: https://launchpad.net/watcher
|
|
||||||
.. _Gerrit: http://docs.openstack.org/infra/manual/developers.html#development-workflow
|
|
||||||
|
|
||||||
Testing
|
|
||||||
-------
|
|
||||||
|
|
||||||
The preferred way to run the unit tests is using ``tox``.
|
|
||||||
|
|
||||||
See `Consistent Testing Interface`_ for more details.
|
|
||||||
|
|
||||||
.. _Consistent Testing Interface: http://git.openstack.org/cgit/openstack/governance/tree/reference/project-testing-interface.rst
|
|
||||||
.. _Watcher: https://wiki.openstack.org/wiki/Watcher
|
|
||||||
|
8
doc/source/reference/api/index.rst
Normal file
8
doc/source/reference/api/index.rst
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
======================
|
||||||
|
Python API Reference
|
||||||
|
======================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
autoindex
|
@@ -80,12 +80,6 @@ Refer to the modules themselves, for more details.
|
|||||||
watcherclient Modules
|
watcherclient Modules
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 1
|
|
||||||
|
|
||||||
modules <api/autoindex>
|
|
||||||
|
|
||||||
|
|
||||||
.. _watcherclient.v1.audit: api/watcherclient.v1.audit.html#watcherclient.v1.audit.Audit
|
.. _watcherclient.v1.audit: api/watcherclient.v1.audit.html#watcherclient.v1.audit.Audit
|
||||||
.. _watcherclient.v1.client.Client: api/watcherclient.v1.client.html#watcherclient.v1.client.Client
|
.. _watcherclient.v1.client.Client: api/watcherclient.v1.client.html#watcherclient.v1.client.Client
|
||||||
.. _Client: api/watcherclient.v1.client.html#watcherclient.v1.client.Client
|
.. _Client: api/watcherclient.v1.client.html#watcherclient.v1.client.Client
|
14
doc/source/reference/index.rst
Normal file
14
doc/source/reference/index.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
==========================
|
||||||
|
Python Library Reference
|
||||||
|
==========================
|
||||||
|
|
||||||
|
In order to use the python api directly, you must first obtain an auth
|
||||||
|
token and identify which endpoint you wish to speak to. Once you have
|
||||||
|
done so, you can use the API like so.
|
||||||
|
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
api/index
|
||||||
|
api_v1
|
Reference in New Issue
Block a user