Sida Chen
5a94499fdb
update according to comments
5 years ago
Sida Chen
79af05e67d
pgsql: Fix postgres queries for feature_type
5 years ago
Sida Chen
0c1b80b2ed
pgsql: Implement database queries for detector relationship
...
* Refactor layer and ancestry
* Add tests
* Fix bugs introduced when the queries were moved
6 years ago
Sida Chen
a5c6400065
database: postgres implementation with tests.
7 years ago
Jimmy Zelinskie
9c63a63944
clair: mv updater clair and mv severity to db
7 years ago
Jimmy Zelinskie
3e4dc3834f
utils: remove string.go
7 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.
7 years ago
Jimmy Zelinskie
8d29bf860d
versionfmt: convert to using constant over literal
7 years ago
Jimmy Zelinskie
033709eaea
add registerable version formats
...
Since we only ever used dpkg, this change shims everything into using
dpkg.
7 years ago
Quentin Machu
e7b960c05b
database: Allow specifying datastore driver by config
...
Fixes #145
8 years ago
Jimmy Zelinskie
500fc4e407
various: gofmt -s
8 years ago
Quentin Machu
84319507df
database: use constants to store queries
8 years ago
Quentin Machu
7c11e4eb5d
updater/database: do not create notifications during the initial update
8 years ago
Quentin Machu
94ece7bf2b
database: fix notification design and add vulnerability history
8 years ago
Quentin Machu
8be18a0a01
database: write more of the notification system
8 years ago
Quentin Machu
82175dcfe9
*: add missing copyright headers
8 years ago
Quentin Machu
bd17dfb5e1
database: ensure that concurrent vulnerability/feature versions insertions work fine
8 years ago