tuxeatpi_common.etcd_client module

Module defintion function to get etcd client

class tuxeatpi_common.etcd_client.EtcdWrapper(host=None, port=None)

Bases: object

Etcd Wrapper class to handle sync and async requests

async_read(key, wait=False)

Async Etcd read operation

delete(key, recursive=False)

Sync Etcd delete operation

eternal_watch(key, recursive=False)

Sync Etcd watch operation

read(key, recursive=False, wait=False, timeout=60)

Sync Etcd read operation

write(key, value, serialize=True)

Sync Etcd write operation