tuxeatpi_common.registry module

Module to handle registry in Etcd

class tuxeatpi_common.registry.RegistryHandler(component_name, component_version, etcd_wrapper)

Bases: object

Registry handler class

clear()

Remove all entries in the registry

ping(state='ALIVE')

Send ping data to etcd

read()

Get all component states

set_notalive(data)

Set component not alive in the registry