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
Jimmy Zelinskie
0565938956
pkg/pagination: add token type
...
This change pulls as much pagination logic out of the database
implementation as possible. Database implementations should now be able
to marshal whatever state they need into opaque tokens with the
utilities in the pagination package.
6 years ago
Jimmy Zelinskie
d193b46449
pkg/pagination: init
...
This change refactors a lot of the code dealing with pagination so that
fernet implementation details do not leak.
- Deletes database/pgsql/token
- Introduces a pagination package
- Renames idPageNumber to Page and add a constructor and method.
6 years ago
Jimmy Zelinskie
4491bedf2e
database/pgsql: move token lib
7 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
6a569fd945
move config to main / decentralize config
...
This puts config in its relevant location and moves functions around
loading config files into the main package.
As a side effect of removing cyclic imports for the API config, the
context library is no longer used.
8 years ago
Jimmy Zelinskie
e7f72ef5ad
utils: rm prometheus.go
8 years ago
Jimmy Zelinskie
78cef02fda
pkg: cerrors -> commonerr
8 years ago
Quentin Machu
b8865b2106
pgsql: Replace liamstask/goose by remind101/migrate
...
Fixes #93
8 years ago
Quentin Machu
836d37b275
*: use `path/filepath` instead of `path`
8 years ago
Quentin Machu
e7b960c05b
database: Allow specifying datastore driver by config
...
Fixes #145
8 years ago
Quentin Machu
883be8769f
database: fix Ping() method in PostgreSQL's implementation
9 years ago
Jimmy Zelinskie
99f3552470
database: add Insert/DeleteVulnerabilityFix
9 years ago
Quentin Machu
03d904c620
database: improve PostgreSQL test inits and cleanups
9 years ago
Quentin Machu
8be18a0a01
database: write more of the notification system
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
b8b7be3f81
*: remove health checker
9 years ago
Quentin Machu
563b3825d8
database: let handleErrors deal with the not found case
9 years ago
Quentin Machu
82175dcfe9
*: add missing copyright headers
9 years ago
Quentin Machu
77387af2ac
updater: port updater and its fetchers
9 years ago
Quentin Machu
7c70fc1c20
database: add initial vulnerability support
9 years ago
Quentin Machu
6a9cf21fd4
database: log and mask SQL errors
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