awwad / uptane

Uptane, security framework for automotive updates
https://uptane.github.io/
MIT License
10 stars 42 forks source link

Re-Implementation of InventoryDB #22

Closed baloian closed 7 years ago

baloian commented 7 years ago

Added InventoryDataBase class. Now instead of Json file we save all information in dictionary, for the dictionary design please have a look InventoryDataBase class description in uptane/services/inventorydb.py.

Modified save_vehicle_manifest() save_ecu_manifest(), get_vehicle_manifest() and get_ecu_manifest() functions in order to store and get data from divtionary.

Added register_ecu() function which initialize dictionary. NOTE: you have to call this function just after defining InventoryDataBase object.

awwad commented 7 years ago

(This is for Issue #5.)