Commit Graph

8 Commits

Author SHA1 Message Date
Quentin Machu
e78d076d02 api/worker: adjust error codes in postLayer 2016-02-24 16:40:40 -05:00
Quentin Machu
bae5a5e3ad worker: remove duplicated tests 2016-02-24 16:40:40 -05:00
Quentin Machu
418ab08c4b api: adjust postLayer error codes
- return 422 when layer could not be analyzed (extraction failed or layer unsupported)
- return 404 if the parent is not found or the download path leads to a 404 page
2016-02-24 16:40:40 -05:00
Quentin Machu
c2605e0bf2 worker: verify download status code 2016-02-24 16:36:45 -05:00
Quentin Machu
41736e4600 worker: DetectData should return an error if the supported detector failed 2016-02-24 16:36:45 -05:00
Quentin Machu
90fe137de8 worker: move each data detector to their own packages and remove image format whitelist 2016-02-24 16:34:54 -05:00
Quentin Machu
343ce39865 worker: detect the status code when downloading a layer and expect 2XX. 2016-02-09 16:55:56 -05:00
liangchenye
b1775ed3dc add data detector to support ACI and other format in the future
Signed-off-by: liangchenye <liangchenye@huawei.com>
2015-12-11 19:37:25 +08:00