The congress.datasources.swift_driver Module

class congress.datasources.swift_driver.SwiftDriver(name=”, args=None)

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

CONTAINERS = ‘containers’
OBJECTS = ‘objects’
TRANSLATORS = [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘count’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘bytes’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘containers’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘bytes’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘last_modified’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘hash’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘content_type’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘container_name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘objects’}]
containers_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘count’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘bytes’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘containers’}
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
get_swift_credentials_v1(creds)
initialize_update_methods()
objects_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘bytes’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘last_modified’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘hash’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘content_type’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘container_name’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘objects’}
value_trans = {‘translation-type’: ‘VALUE’}