Lei Jitang
859b1942a5
docs: fix the docker cli of running clair in README.md
...
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-02-27 16:49:41 +08:00
Quentin Machu
76c7136f8e
Merge pull request #79 from liangchenye/v1doc
...
readme: make API description consistence
2016-02-26 09:22:49 -05:00
liangchenye
d47616a339
readme: make API description consistence
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-26 15:54:59 +08:00
Jimmy Zelinskie
af0ddceaa2
readme: s/notification/notifications
2016-02-25 15:52:21 -05:00
Jimmy Zelinskie
2140995a54
readme: clarify "marked as read" notifications
2016-02-25 13:49:24 -05:00
Jimmy Zelinskie
d1e9a21e0e
Merge pull request #77 from coreos/simplify
...
various: gofmt -s
2016-02-24 19:44:43 -05:00
Jimmy Zelinskie
500fc4e407
various: gofmt -s
2016-02-24 19:29:36 -05:00
Jimmy Zelinskie
440b5d58cd
README: fix godoc badge copypasta
2016-02-24 18:08:16 -05:00
Jimmy Zelinskie
9445fef35a
Merge pull request #76 from coreos/sp
...
various: spelling corrections
2016-02-24 18:03:53 -05:00
Jimmy Zelinskie
8fd0aa162b
various: spelling corrections
2016-02-24 18:00:36 -05:00
Jimmy Zelinskie
548a2be262
Merge pull request #71 from Quentin-M/sql
...
Clair 1.0 Mega PR
2016-02-24 17:56:34 -05:00
Jimmy Zelinskie
001c0a73d3
contrib: adapt analyze-local-images for new API
2016-02-24 16:43:19 -05:00
Jimmy Zelinskie
ec8cf9fb26
README: add documentation with links
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
1557a27a8c
Revert "v1: pagination now deterministic"
...
This reverts commit 24f329fea674e04c76f5e87c22eea1800e6bc413.
This was unnecessary.
2016-02-24 16:40:40 -05:00
Quentin Machu
3563cf9061
api: fix pagination token that's returned to match what has been passed
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
4fd4049fee
v1: update documented error codes
2016-02-24 16:40:40 -05:00
Quentin Machu
e78d076d02
api/worker: adjust error codes in postLayer
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
136b907050
notifier: add README
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
8c282fdb5a
webhook: add JSON envelope
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
a19365123f
remove docs directory
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
bb7745f3fe
config: better document example
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
f48f94cbd0
readme: continue to nitpick
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
fe1e06669f
README: nitpick
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
452c32d7d7
v1: pagination now deterministic
...
The standard JSON encoding has no guarantee of the order of keys, thus
token values could differ, but still be equivalent.
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
dc431c22f3
v1: add readme
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
771e35def0
v1: return object on PUT/POST
...
This change also improves error handling around InsertVulnerability.
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
c06df1affd
v1: 200 on PUT
2016-02-24 16:40:40 -05:00
Quentin Machu
6b8e198ef9
README: fix link
2016-02-24 16:40:40 -05:00
Quentin Machu
84319507df
database: use constants to store queries
2016-02-24 16:40:40 -05:00
Quentin Machu
904ce6004f
notifier: add a timeout on the http client
2016-02-24 16:40:40 -05:00
Quentin Machu
274a1620a5
api: log instead of panic when a response could not be marshaled
...
In order to avoid killing Clair when there is simply a broken pipe..
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
80977f233e
README: add go report card
2016-02-24 16:40:40 -05:00
Quentin Machu
8d76700506
api: add call duration in logs
2016-02-24 16:40:40 -05:00
Quentin Machu
06531e01c5
database: disable hash/merge joins in FindLayer
...
Our experiments have shown that PostgreSQL 9.4 makes bad
planning decisions about:
- joining the layer tree to feature versions and feature
- joining the feature versions to affected/fixed feature version and vulnerabilities
It would for instance do a merge join between affected feature versions (300 rows, estimated
3000 rows) and fixed in feature version (100k rows). In this case, it is much more
preferred to use a nested loop.
2016-02-24 16:40:40 -05:00
Quentin Machu
18f2d7e672
database: modify join table in FindLayer to reduce cost by 3.5x
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
c61eebafdf
README: move diagram to architecture section
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
6e196e416d
README: add diagram & custom data sources
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
Jimmy Zelinskie
4f4dbd5b61
reboot README
2016-02-24 16:40:40 -05:00
Quentin Machu
f40f6a5ab6
api: add missing link field in vulnerability in getLayer
2016-02-24 16:39:25 -05:00
Quentin Machu
6d2eedf121
api/database: add the layer name that add each feature in getLayer
2016-02-24 16:39:25 -05:00
Quentin Machu
6b23520710
Dockerfile: remove useless volume
2016-02-24 16:39:25 -05:00
liangchenye
9bad9be19b
update analyze-local-image with new API
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-24 16:39:25 -05:00
Quentin Machu
16a652fa47
*: refresh godeps
2016-02-24 16:36:45 -05:00
Quentin Machu
b5d8f9952e
database: fix notification test (wrong signature)
2016-02-24 16:36:45 -05:00
Quentin Machu
45ed80df1b
updater: remove useless error
2016-02-24 16:36:45 -05:00
Quentin Machu
0e9a7e1740
api: close gzip writer to flush it
2016-02-24 16:36:45 -05:00
Quentin Machu
c2605e0bf2
worker: verify download status code
2016-02-24 16:36:45 -05:00
Quentin Machu
f0816d2c4d
database: add docs about the interface
2016-02-24 16:36:45 -05:00