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
= [{'selector-type': 'DOT_SELECTOR', 'table-name': 'users', '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'}})}, {'selector-type': 'DOT_SELECTOR', 'table-name': 'roles', 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}})}, {'selector-type': 'DOT_SELECTOR', 'table-name': 'tenants', '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
= {'selector-type': 'DOT_SELECTOR', 'table-name': 'roles', 'translation-type': 'HDICT', 'field-translators': ({'fieldname': 'id', 'translator': {'translation-type': 'VALUE'}}, {'fieldname': 'name', 'translator': {'translation-type': 'VALUE'}})}¶
-
tenants_translator
= {'selector-type': 'DOT_SELECTOR', 'table-name': 'tenants', '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
= {'selector-type': 'DOT_SELECTOR', 'table-name': 'users', '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'}¶
-