As a user, I can use pulp_example plugin to import content
The Example plugin will provide a setup.py for installing the plugin. The install will create an entry point that will make the plugin discover-able by Pulp.
The Example plugin will provide ExampleContent content type to Pulp. ExampleContent will be exactly the same as FileContent from file plugin.
The Example plugin will also provide an ExampleImporter. The importer will
- perform downloads asyncronously and in parallel - minimize number of select queries executed to look up existing content and artifacts - use separate database transactions for each content unit created to avoid having to perform database cleanup when failures occur
The pulp_example repository will also include a README that will provide documentation about the plugin.