Add driver autogenerated docs
Start to add/build a developer oriented doc that can be further refined to explain to developers how to use the different tooz drivers (and what the varying drivers capabilities are). Change-Id: I49f6bf5b397d6bc5426c074f6196c764c8938d23
This commit is contained in:
@@ -31,6 +31,8 @@ extensions = [
|
||||
'sphinx.ext.graphviz',
|
||||
'sphinx.ext.extlinks',
|
||||
'oslosphinx',
|
||||
'sphinx.ext.inheritance_diagram',
|
||||
'sphinx.ext.viewcode',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
|
||||
54
doc/source/developers.rst
Normal file
54
doc/source/developers.rst
Normal file
@@ -0,0 +1,54 @@
|
||||
==========
|
||||
Developers
|
||||
==========
|
||||
|
||||
Interfaces
|
||||
----------
|
||||
|
||||
.. autoclass:: tooz.coordination.CoordinationDriver
|
||||
:members:
|
||||
|
||||
IPC
|
||||
~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.ipc.IPCDriver
|
||||
:members:
|
||||
|
||||
Memcached
|
||||
~~~~~~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.memcached.MemcachedDriver
|
||||
:members:
|
||||
|
||||
Mysql
|
||||
~~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.mysql.MySQLDriver
|
||||
:members:
|
||||
|
||||
PostgreSQL
|
||||
~~~~~~~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.pgsql.PostgresDriver
|
||||
:members:
|
||||
|
||||
Redis
|
||||
~~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.redis.RedisDriver
|
||||
:members:
|
||||
|
||||
Zake
|
||||
~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.zake.ZakeDriver
|
||||
:members:
|
||||
|
||||
Zookeeper
|
||||
~~~~~~~~~
|
||||
|
||||
.. autoclass:: tooz.drivers.zookeeper.BaseZooKeeperDriver
|
||||
:members:
|
||||
|
||||
.. autoclass:: tooz.drivers.zookeeper.KazooDriver
|
||||
:members:
|
||||
@@ -13,6 +13,7 @@ Contents:
|
||||
install
|
||||
drivers
|
||||
tutorial/index
|
||||
developers
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
@@ -120,6 +120,7 @@ class IPCLock(locking.Lock):
|
||||
|
||||
|
||||
class IPCDriver(coordination.CoordinationDriver):
|
||||
"""A IPC based driver."""
|
||||
|
||||
def __init__(self, member_id, parsed_url, options):
|
||||
"""Initialize the IPC driver."""
|
||||
|
||||
@@ -79,6 +79,7 @@ class MemcachedLock(locking.Lock):
|
||||
|
||||
|
||||
class MemcachedDriver(coordination.CoordinationDriver):
|
||||
"""A memcached based driver."""
|
||||
|
||||
_GROUP_PREFIX = b'_TOOZ_GROUP_'
|
||||
_GROUP_LEADER_PREFIX = b'_TOOZ_GROUP_LEADER_'
|
||||
|
||||
@@ -67,6 +67,7 @@ class MySQLLock(locking.Lock):
|
||||
|
||||
|
||||
class MySQLDriver(coordination.CoordinationDriver):
|
||||
"""A mysql based driver."""
|
||||
|
||||
def __init__(self, member_id, parsed_url, options):
|
||||
"""Initialize the MySQL driver."""
|
||||
|
||||
@@ -127,6 +127,7 @@ class PostgresLock(locking.Lock):
|
||||
|
||||
|
||||
class PostgresDriver(coordination.CoordinationDriver):
|
||||
"""A PostgreSQL based driver."""
|
||||
|
||||
def __init__(self, member_id, parsed_url, options):
|
||||
"""Initialize the PostgreSQL driver."""
|
||||
|
||||
Reference in New Issue
Block a user