Quentin Machu
836d37b275
*: use `path/filepath` instead of `path`
8 years ago
Quentin Machu
8551a0a3b2
worker: Mock datastore in worker's tests
8 years ago
Quentin Machu
a38fbf6cfe
worker/database: Move upgrade detection logic out of database to worker
8 years ago
Jimmy Zelinskie
53e62577bc
api/worker: s/Authorization/Headers ( #167 )
...
This allows clients to specify any HTTP headers that need to be used in
order to allow Clair to download a layer, rather than just the
Authorization header.
9 years ago
Jimmy Zelinskie
9b5afc79ca
api/worker: introduce optional authorization
...
This allows clients to specify the contents of the HTTP Authorization
header so that Clair can access protected resources.
9 years ago
Jimmy Zelinskie
500fc4e407
various: gofmt -s
9 years ago
Jimmy Zelinskie
8fd0aa162b
various: spelling corrections
9 years ago
Quentin Machu
e78d076d02
api/worker: adjust error codes in postLayer
9 years ago
Quentin Machu
bae5a5e3ad
worker: remove duplicated tests
9 years ago
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
9 years ago
Quentin Machu
c2605e0bf2
worker: verify download status code
9 years ago
Quentin Machu
41736e4600
worker: DetectData should return an error if the supported detector failed
9 years ago
Quentin Machu
98ed041956
worker: remove double error
9 years ago
Quentin Machu
9b51f7f4fb
worker: raise worker version number
9 years ago
Jimmy Zelinskie
2f57f0d4b1
worker: change worker errors to bad request errors
9 years ago
Quentin Machu
b3ddfbc353
worker: remove namespace whitelist
...
As Clair let developers register their own detectors
9 years ago
Quentin Machu
90fe137de8
worker: move each data detector to their own packages and remove image format whitelist
9 years ago
Quentin Machu
4bdbd5e6db
*: fix several tests
9 years ago
Quentin Machu
82175dcfe9
*: add missing copyright headers
9 years ago
Quentin Machu
34842fd8f7
worker: fix dpkg detector and adapt tests
9 years ago
Quentin Machu
85fa3f9a38
updater/worker: adapt several tests
9 years ago
Quentin Machu
970756cd5a
database: do insert/find layers (with their features and vulnerabilities)
9 years ago
Quentin Machu
2c150b015e
*: refactor & do initial work towards PostgreSQL implementation
9 years ago
Quentin Machu
343ce39865
worker: detect the status code when downloading a layer and expect 2XX.
9 years ago
Liang Chenye
4b11491067
add ImageFormat to worker_test and programs under contrib
...
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
9 years ago
Liang Chenye
41509ccd3e
add imageFormt to API.md; add xz to Dockerfile; fix bugs
...
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
9 years ago
liangchenye
354c4b3672
always trim './'
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
9 years ago
liangchenye
b1775ed3dc
add data detector to support ACI and other format in the future
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
9 years ago
Quentin Machu
eb7e5d5c74
main: Use configuration file instead of flags and simplify app extension.
...
Clair will now use a YAML configuration file instead of command line
arguments as the number of parameters grows.
Also, Clair now exposes a Boot() func that allows everyone to easily
create their own project and load dynamically their own fetchers/updaters.
9 years ago
Quentin Machu
ac0e68efe7
worker: Add a missing CleanURL
9 years ago
Quentin Machu
f229083e1e
database/worker: Remove useless log message
9 years ago
Quentin Machu
3ec262dd51
Initial commit
9 years ago