The congress.datasources.keystone_driver Module

class congress.datasources.keystone_driver.KeystoneDriver(name=”, args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver

ROLES = ‘roles’
TENANTS = ‘tenants’
TRANSLATORS = [{‘table-name’: ‘users’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘username’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘tenantId’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘email’, ‘translator’: {‘translation-type’: ‘VALUE’}})}, {‘table-name’: ‘roles’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}})}, {‘table-name’: ‘tenants’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}})}]
USERS = ‘users’
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
get_keystone_credentials_v2(args)
initialize_update_methods()
roles_translator = {‘table-name’: ‘roles’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}})}
tenants_translator = {‘table-name’: ‘tenants’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘description’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}})}
users_translator = {‘table-name’: ‘users’, ‘selector-type’: ‘DOT_SELECTOR’, ‘translation-type’: ‘HDICT’, ‘field-translators’: ({‘fieldname’: ‘username’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘name’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘enabled’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘tenantId’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘id’, ‘translator’: {‘translation-type’: ‘VALUE’}}, {‘fieldname’: ‘email’, ‘translator’: {‘translation-type’: ‘VALUE’}})}
value_trans = {‘translation-type’: ‘VALUE’}