Sida Chen
9c49d9dc55
pgsql: Move queries to corresponding files
...
Aggregate queries in their corresponding files instead of having the
single file for every queries because the database is more complicated.
6 years ago
Sida Chen
ff9303905b
database: changed Notification interface name
6 years ago
Sida Chen
a5c6400065
database: postgres implementation with tests.
7 years ago
Sida Chen
9306e99368
converted to structured logging by using logrus
...
changed from capnslog to logrus for logging JSON structured message.
finished issue #383
8 years ago
Jimmy Zelinskie
9e875f748d
database/pgsql: copy whole namespace
8 years ago
Jimmy Zelinskie
3e4dc3834f
utils: remove string.go
8 years ago
Jimmy Zelinskie
343e24eb7e
clair: remove `types` package
...
This removes the `types` package instead moving the contents to the
top-level clair package.
This change also renames the `Priority` type to `Severity` in order to
reduce confusion.
This change also removes the IsValid method and replaces it with a safe
constructor to avoid the creation of invalid values.
Many docstrings were tweaked in the making of this commit.
8 years ago
Jimmy Zelinskie
78cef02fda
pkg: cerrors -> commonerr
8 years ago
Jimmy Zelinskie
033709eaea
add registerable version formats
...
Since we only ever used dpkg, this change shims everything into using
dpkg.
8 years ago
Quentin Machu
ec0aad9b7a
pgsql: Use booleans instead of varchar to return creation status
8 years ago
Quentin Machu
cd23262e41
pgsql: Do not insert entry in Vulnerability_FixedIn_Feature if existing
...
Fixes #238
8 years ago
liangchenye
1a863a06cf
remove the useless pointer of NextPage field; check namespace notfound error
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
9 years ago
liangchenye
48ffb2687a
use encrypt page in listVuln api
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
9 years ago
liangchenye
a541e964e0
New API: list vulnerabilities by namespace
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
9 years ago
Jimmy Zelinskie
500fc4e407
various: gofmt -s
9 years ago
Quentin Machu
84319507df
database: use constants to store queries
9 years ago
Quentin Machu
e3a25e5368
database: ignore min versions during new vulnerability insertions
9 years ago
Quentin Machu
7c11e4eb5d
updater/database: do not create notifications during the initial update
9 years ago
Quentin Machu
94ece7bf2b
database: fix notification design and add vulnerability history
9 years ago
Jimmy Zelinskie
99f3552470
database: add Insert/DeleteVulnerabilityFix
9 years ago
Quentin Machu
5fdd9d1a07
*: add metadata support along with NVD CVSS
9 years ago
Quentin Machu
8be18a0a01
database: write more of the notification system
9 years ago
Quentin Machu
2690800331
database: create notification during vulnerability insertion
9 years ago
Quentin Machu
baed60e19b
prometheus: add initial Prometheus support
9 years ago
Quentin Machu
ad0531acc7
notifier/database: refactor notification system and add initial Prometheus support
9 years ago
Quentin Machu
63ebddfd36
database: add vulnerability deletion support
9 years ago
Quentin Machu
c60d0054fa
notifier/database: draft new notification system
9 years ago
Quentin Machu
82175dcfe9
*: add missing copyright headers
9 years ago
Quentin Machu
bd17dfb5e1
database: ensure that concurrent vulnerability/feature versions insertions work fine
9 years ago
Quentin Machu
c5d1a8e5f7
database: update vulnerabilities only when necessary
9 years ago
Quentin Machu
77387af2ac
updater: port updater and its fetchers
9 years ago
Quentin Machu
1b53142e38
database: allow removing fixed packages in vulnerabilities
9 years ago
Quentin Machu
7c70fc1c20
database: add initial vulnerability support
9 years ago