Task #3661

Updated by over 5 years ago

Add a MongoEngine model to represent Identify which fields should go onto the Modulemd content type.  

 Modulemd model : 

 Modulemd model: 

 NSVCA is the unit_key 

 Name - string 
 Stream - integer 
 Version - integer 
 Context - string 
 Arch - string 
 Summary - string 
 Description - string 
 Profile - list of profiles - list 
 Artifacts - list or rpm - list 
 _storage_path --> yaml stored on the disk - string 
 checksum ( for yaml integrity check) - string 
 checksumtype - string 

 The unit_key is NSVCA.  

 * To parse module.yaml doc we'll use Modulemd.objects_from_file() from libmodulemd 
 * To Write module out to a YAML document on disk we'll use Modulemd.Module.dump () from libmodulemd. 
 * Spec of the Modulemd for reference 
 * library for the reference