Commit Graph

7 Commits

Author SHA1 Message Date
Robert Putt 2341f2acaf Use Oslo Config global CONF object rather than Flask config.
Update anything using configuration items to use the global CONF
object from Oslo Config rather than using the Flask config as
the Oslo Config CONF object can be used outside of the Flask
application context.

Change-Id: Ie7eafd322ab1a6f57ff1e8e5b66e27079caa4aba
2018-03-08 19:17:19 +00:00
Robert Putt 1a4d5d3af1 Add MIME type detection upon upload
Change-Id: Ia2f080b9fa7c7b12fe06166caecf089ded3cb16a
2017-12-15 07:18:39 +00:00
Robert Putt 63dc98c723 Add uber simple Oslo.Messaging notifier for sending messages.
Add uber simple Oslo.Messaging notifier for sending messages.

Change-Id: I5ac4bafbb02cb4dfb79e5892e5b9fc42d9162807
2017-12-03 17:21:29 +00:00
Robert Putt bb16e13ec1 Upload files sent to API to swift.
Upload files sent to API to swift container.

Change-Id: I6f7d541952fc0c6376e913990ba287b1030bc10c
2017-12-03 10:20:30 +00:00
Robert Putt a4ab2d89ca Allow file upload and hash calculation.
Allow users to upload file for analysis and calculate hash for file.
Later we probably need to send this to some shared storage (Swift)
and then pass the file_id to a queue so the workers can pick it up
and process it accordingly.

Change-Id: Ie45adb5154c1c17f61c6d0cdddeaa2191d05f91e
2017-12-02 20:24:51 +00:00
Robert Putt d7efed8c1d Add starter routes and db methods.
Add starter routes and db methods.

Change-Id: I1e5c3d59cdbac17c6bb11a7886026bb58856cc9c
2017-12-01 21:09:35 +00:00
Robert Putt 1836ccbc6b Add basic database model
Adds basic database model to get us started. This will need to be
extended drastically for basic functionality but should allow
us to make a simple worker that simply adds hashes to the DB.

Long term maybe MySQL isnt even a good idea, but it'll get a
basic proof of concept sorted for now.

Change-Id: Ifdcd2309fa2ad6a9a27dd6c3ba61dd8db0dcb854
2017-11-30 20:36:52 +00:00