tuxeatpi_common.settings module

Module defining how to handle component settings

class tuxeatpi_common.settings.SettingsHandler(component)

Bases: object

Settings handler class

delete(key=None)

Delete settings from etcd

read(watch=False)

Watch for component settings change in etcd

This is done by the subtaskers

read_global(watch=False)

Watch for global settings change in etcd

This is done by the subtaskers

save(value, key=None)

Serialize (json) value and save it in etcd

stop()

Stop waiting for settings