Implement against new Clair paginated notification system

This commit is contained in:
Joseph Schorr 2016-02-25 15:58:42 -05:00
parent b34314a584
commit f498e92d58
10 changed files with 447 additions and 101 deletions

View file

@ -3,7 +3,7 @@
PRIORITY_LEVELS = {
'Unknown': {
'title': 'Unknown',
'index': '6',
'index': 6,
'level': 'info',
'description': 'Unknown is either a security problem that has not been assigned ' +
@ -13,7 +13,7 @@ PRIORITY_LEVELS = {
'Negligible': {
'title': 'Negligible',
'index': '5',
'index': 5,
'level': 'info',
'description': 'Negligible is technically a security problem, but is only theoretical ' +
@ -24,7 +24,7 @@ PRIORITY_LEVELS = {
'Low': {
'title': 'Low',
'index': '4',
'index': 4,
'level': 'warning',
'description': 'Low is a security problem, but is hard to exploit due to environment, ' +
@ -36,7 +36,7 @@ PRIORITY_LEVELS = {
'Medium': {
'title': 'Medium',
'value': 'Medium',
'index': '3',
'index': 3,
'level': 'warning',
'description': 'Medium is a real security problem, and is exploitable for many people. ' +
@ -48,7 +48,7 @@ PRIORITY_LEVELS = {
'High': {
'title': 'High',
'value': 'High',
'index': '2',
'index': 2,
'level': 'warning',
'description': 'High is a real problem, exploitable for many people in a default installation. ' +
@ -60,7 +60,7 @@ PRIORITY_LEVELS = {
'Critical': {
'title': 'Critical',
'value': 'Critical',
'index': '1',
'index': 1,
'level': 'error',
'description': 'Critical is a world-burning problem, exploitable for nearly all people in ' +
@ -72,7 +72,7 @@ PRIORITY_LEVELS = {
'Defcon1': {
'title': 'Defcon 1',
'value': 'Defcon1',
'index': '0',
'index': 0,
'level': 'error',
'description': 'Defcon1 is a Critical problem which has been manually highlighted ' +