From f8d0f10c789f3b8bd370c03a7282d4ac715c7e63 Mon Sep 17 00:00:00 2001 From: jgsqware Date: Fri, 20 May 2016 18:33:32 +0200 Subject: [PATCH] reorganize report class --- cmd/clairctl/clair/clair.go | 59 --------------- cmd/clairctl/clair/clair_test.go | 72 ++----------------- cmd/clairctl/clair/health.go | 6 +- cmd/clairctl/clair/report.go | 54 +++++++++++++- cmd/clairctl/clair/report_test.go | 2 +- cmd/clairctl/clair/samples/clair_report.json | 22 ------ cmd/clairctl/clair/templates.go | 4 +- .../clair/templates/analysis-template.html | 4 +- 8 files changed, 65 insertions(+), 158 deletions(-) diff --git a/cmd/clairctl/clair/clair.go b/cmd/clairctl/clair/clair.go index 732746c4..bc93dba5 100644 --- a/cmd/clairctl/clair/clair.go +++ b/cmd/clairctl/clair/clair.go @@ -1,46 +1,17 @@ package clair import ( - "math" "strconv" "strings" "github.com/coreos/clair/api/v1" "github.com/coreos/clair/cmd/clairctl/xstrings" - "github.com/coreos/clair/utils/types" "github.com/spf13/viper" ) var uri string var healthURI string -//Report Reporting Config value -var Report ReportConfig - -//VulnerabiliesCounts Total count of vulnerabilities by type -type vulnerabiliesCounts map[types.Priority]int - -//Total return to total of Vulnerabilities -func (v vulnerabiliesCounts) Total() int { - var c int - for _, count := range v { - c += count - } - return c -} - -//Count return count of severities in Vulnerabilities -func (v vulnerabiliesCounts) Count(severity string) int { - return v[types.Priority(severity)] -} - -//RelativeCount get the percentage of vulnerabilities of a severity -func (v vulnerabiliesCounts) RelativeCount(severity string) float64 { - count := v[types.Priority(severity)] - result := float64(count) / float64(v.Total()) * 100 - return math.Ceil(result*100) / 100 -} - //ImageAnalysis Full image analysis type ImageAnalysis struct { Registry, ImageName, Tag string @@ -51,41 +22,11 @@ func (imageAnalysis ImageAnalysis) String() string { return imageAnalysis.Registry + "/" + imageAnalysis.ImageName + ":" + imageAnalysis.Tag } -// CountVulnerabilities counts all image vulnerability -func (imageAnalysis ImageAnalysis) countVulnerabilities(l v1.Layer) int { - count := 0 - for _, f := range l.Features { - count += len(f.Vulnerabilities) - } - return count -} - -// CountAllVulnerabilities Total count of vulnerabilities -func (imageAnalysis ImageAnalysis) CountAllVulnerabilities() vulnerabiliesCounts { - result := make(vulnerabiliesCounts) - - l := imageAnalysis.Layers[len(imageAnalysis.Layers)-1] - - for _, f := range l.Layer.Features { - - for _, v := range f.Vulnerabilities { - result[types.Priority(v.Severity)]++ - } - } - - return result -} - //LastLayer return the last layer of ImageAnalysis func (imageAnalysis ImageAnalysis) LastLayer() *v1.Layer { return imageAnalysis.Layers[len(imageAnalysis.Layers)-1].Layer } -type vulnerabilityWithFeature struct { - v1.Vulnerability - Feature string -} - func fmtURI(u string, port int) string { if port != 0 { diff --git a/cmd/clairctl/clair/clair_test.go b/cmd/clairctl/clair/clair_test.go index 41297786..3448b584 100644 --- a/cmd/clairctl/clair/clair_test.go +++ b/cmd/clairctl/clair/clair_test.go @@ -7,13 +7,15 @@ import ( "net/http" "net/http/httptest" "testing" + + "github.com/Sirupsen/logrus" ) func getSampleAnalysis() []byte { file, err := ioutil.ReadFile("./samples/clair_report.json") if err != nil { - fmt.Printf("File error: %v\n", err) + logrus.Errorf("File error: %v\n", err) } return file @@ -28,7 +30,7 @@ func newServer(httpStatus int) *httptest.Server { func TestIsHealthy(t *testing.T) { server := newServer(http.StatusOK) defer server.Close() - uri = server.URL + healthURI = server.URL if h := IsHealthy(); !h { t.Errorf("IsHealthy() => %v, want %v", h, true) } @@ -43,37 +45,6 @@ func TestIsNotHealthy(t *testing.T) { } } -// func TestCountAllVulnerabilities(t *testing.T) { - -// var analysis ImageAnalysis -// err := json.Unmarshal([]byte(getSampleAnalysis()), &analysis) - -// if err != nil { -// t.Errorf("Failing with error: %v", err) -// } - -// vulnerabilitiesCount := analysis.CountAllVulnerabilities() - -// if vulnerabilitiesCount.Total != 77 { -// t.Errorf("analysis.CountAllVulnerabilities().Total => %v, want 77", vulnerabilitiesCount.Total) -// } - -// if vulnerabilitiesCount.High != 1 { -// t.Errorf("analysis.CountAllVulnerabilities().High => %v, want 1", vulnerabilitiesCount.High) -// } - -// if vulnerabilitiesCount.Medium != 18 { -// t.Errorf("analysis.CountAllVulnerabilities().Medium => %v, want 18", vulnerabilitiesCount.Medium) -// } - -// if vulnerabilitiesCount.Low != 57 { -// t.Errorf("analysis.CountAllVulnerabilities().Low => %v, want 57", vulnerabilitiesCount.Low) -// } -// if vulnerabilitiesCount.Negligible != 1 { -// t.Errorf("analysis.CountAllVulnerabilities().Negligible => %v, want 1", vulnerabilitiesCount.Negligible) -// } -// } - func TestRelativeCount(t *testing.T) { var analysis ImageAnalysis err := json.Unmarshal([]byte(getSampleAnalysis()), &analysis) @@ -82,8 +53,8 @@ func TestRelativeCount(t *testing.T) { t.Errorf("Failing with error: %v", err) } - vulnerabilitiesCount := analysis.CountAllVulnerabilities() - + vulnerabilitiesCount := allVulnerabilities(analysis) + fmt.Printf("v: %v\n", vulnerabilitiesCount) if vulnerabilitiesCount.RelativeCount("High") != 1.3 { t.Errorf("analysis.CountAllVulnerabilities().RelativeCount(\"High\") => %v, want 1.3", vulnerabilitiesCount.RelativeCount("High")) } @@ -96,34 +67,3 @@ func TestRelativeCount(t *testing.T) { t.Errorf("analysis.CountAllVulnerabilities().RelativeCount(\"Low\") => %v, want 74.03", vulnerabilitiesCount.RelativeCount("Low")) } } - -// func TestFeatureWeight(t *testing.T) { -// feature := Feature{ -// Vulnerabilities: []Vulnerability{}, -// } - -// v1 := Vulnerability{ -// Severity: "High", -// } - -// v2 := Vulnerability{ -// Severity: "Medium", -// } - -// v3 := Vulnerability{ -// Severity: "Low", -// } - -// v4 := Vulnerability{ -// Severity: "Negligible", -// } - -// feature.Vulnerabilities = append(feature.Vulnerabilities, v1) -// feature.Vulnerabilities = append(feature.Vulnerabilities, v2) -// feature.Vulnerabilities = append(feature.Vulnerabilities, v3) -// feature.Vulnerabilities = append(feature.Vulnerabilities, v4) - -// if feature.Weight() != 10 { -// t.Errorf("feature.Weigh => %v, want 6", feature.Weight()) -// } -// } diff --git a/cmd/clairctl/clair/health.go b/cmd/clairctl/clair/health.go index 6911b5c7..565cff37 100644 --- a/cmd/clairctl/clair/health.go +++ b/cmd/clairctl/clair/health.go @@ -1,19 +1,17 @@ package clair import ( - "fmt" "net/http" - "os" "github.com/Sirupsen/logrus" ) +//IsHealthy return Health clair result func IsHealthy() bool { logrus.Debugln("requesting health on: " + healthURI) response, err := http.Get(healthURI) if err != nil { - - fmt.Fprintf(os.Stderr, "requesting Clair health: %v", err) + logrus.Errorf("requesting Clair health: %v", err) return false } defer response.Body.Close() diff --git a/cmd/clairctl/clair/report.go b/cmd/clairctl/clair/report.go index 676bf287..1e9efce1 100644 --- a/cmd/clairctl/clair/report.go +++ b/cmd/clairctl/clair/report.go @@ -3,6 +3,7 @@ package clair import ( "bytes" "fmt" + "math" "text/template" "github.com/coreos/clair/api/v1" @@ -12,6 +13,9 @@ import ( //execute go generate ./clair //go:generate go-bindata -pkg clair -o templates.go templates/... +//Report Reporting Config value +var Report ReportConfig + //ReportConfig Reporting configuration type ReportConfig struct { Path string @@ -27,7 +31,8 @@ func ReportAsHTML(analyzes ImageAnalysis) (string, error) { funcs := template.FuncMap{ "vulnerabilities": vulnerabilities, - "sortedVulnerabilities": SortedVulnerabilities, + "allVulnerabilities": allVulnerabilities, + "sortedVulnerabilities": sortedVulnerabilities, } templte := template.Must(template.New("analysis-template").Funcs(funcs).Parse(string(asset))) @@ -49,6 +54,51 @@ func invertedPriorities() []types.Priority { } +type vulnerabilityWithFeature struct { + v1.Vulnerability + Feature string +} + +//VulnerabiliesCounts Total count of vulnerabilities by type +type vulnerabiliesCounts map[types.Priority]int + +//Total return to total of Vulnerabilities +func (v vulnerabiliesCounts) Total() int { + var c int + for _, count := range v { + c += count + } + return c +} + +//Count return count of severities in Vulnerabilities +func (v vulnerabiliesCounts) Count(severity string) int { + return v[types.Priority(severity)] +} + +//RelativeCount get the percentage of vulnerabilities of a severity +func (v vulnerabiliesCounts) RelativeCount(severity string) float64 { + count := v[types.Priority(severity)] + result := float64(count) / float64(v.Total()) * 100 + return math.Ceil(result*100) / 100 +} + +// allVulnerabilities Total count of vulnerabilities +func allVulnerabilities(imageAnalysis ImageAnalysis) vulnerabiliesCounts { + result := make(vulnerabiliesCounts) + + l := imageAnalysis.Layers[len(imageAnalysis.Layers)-1] + + for _, f := range l.Layer.Features { + + for _, v := range f.Vulnerabilities { + result[types.Priority(v.Severity)]++ + } + } + + return result +} + //Vulnerabilities return a list a vulnerabilities func vulnerabilities(imageAnalysis ImageAnalysis) map[types.Priority][]vulnerabilityWithFeature { @@ -66,7 +116,7 @@ func vulnerabilities(imageAnalysis ImageAnalysis) map[types.Priority][]vulnerabi } // SortedVulnerabilities get all vulnerabilities sorted by Severity -func SortedVulnerabilities(imageAnalysis ImageAnalysis) []v1.Feature { +func sortedVulnerabilities(imageAnalysis ImageAnalysis) []v1.Feature { features := []v1.Feature{} l := imageAnalysis.Layers[len(imageAnalysis.Layers)-1] diff --git a/cmd/clairctl/clair/report_test.go b/cmd/clairctl/clair/report_test.go index 0280db05..a081e184 100644 --- a/cmd/clairctl/clair/report_test.go +++ b/cmd/clairctl/clair/report_test.go @@ -34,7 +34,7 @@ func TestReportAsHtml(t *testing.T) { func TestInvertedPriorities(t *testing.T) { expected := []types.Priority{types.Defcon1, types.Critical, types.High, types.Medium, types.Low, types.Negligible, types.Unknown} - ip := InvertedPriorities() + ip := invertedPriorities() fmt.Printf("%v - %v", len(expected), len(ip)) for i, v := range ip { if v != expected[i] { diff --git a/cmd/clairctl/clair/samples/clair_report.json b/cmd/clairctl/clair/samples/clair_report.json index 1497cb58..430e491f 100644 --- a/cmd/clairctl/clair/samples/clair_report.json +++ b/cmd/clairctl/clair/samples/clair_report.json @@ -1553,28 +1553,6 @@ } ] } - }, - { - "Layer": { - "Name": "sha256:9e0bc8a71bde464f710bc2b593a1fc21521517671e918687892303151331fa56", - "Namespace": "ubuntu:14.04", - "ParentName": "sha256:27aa681c95e5165caf287dcfe896532df4ae8b10e099500f2f8f71acf4002a89", - "IndexedByVersion": 2 - } - }, - { - "Layer": { - "Name": "sha256:27aa681c95e5165caf287dcfe896532df4ae8b10e099500f2f8f71acf4002a89", - "Namespace": "ubuntu:14.04", - "ParentName": "sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4", - "IndexedByVersion": 2 - } - }, - { - "Layer": { - "Name": "sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4", - "IndexedByVersion": 2 - } } ] } \ No newline at end of file diff --git a/cmd/clairctl/clair/templates.go b/cmd/clairctl/clair/templates.go index e5344553..599d21e9 100644 --- a/cmd/clairctl/clair/templates.go +++ b/cmd/clairctl/clair/templates.go @@ -68,7 +68,7 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } -var _templatesAnalysisTemplateHtml = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xdc\x5c\x7d\x6f\xdb\xb8\x19\xff\x3f\x9f\x82\xe7\xf4\xe0\xb4\x8b\xe4\xd8\x49\xd3\xd4\xb5\x3d\x74\x69\x83\x1b\x90\xf5\x86\xb5\x2b\x30\x14\xc5\x81\xb6\x68\x99\x88\x2c\x6a\x12\x9d\x97\x05\xfe\xee\x7b\x48\xbd\x58\x22\x29\x89\x72\x12\x0c\x98\x7a\xa9\x1d\x89\xfc\x3d\x6f\x7c\xde\x28\xf6\x26\xbf\x7c\xfa\xfd\xf2\xdb\xbf\xfe\xfe\x19\xad\xf8\x3a\x98\x1d\x4c\xc4\x07\x0a\x70\xe8\x4f\x7b\x24\xec\xcd\x0e\xe0\x0e\xc1\xde\xec\x00\xc1\x35\xe1\x94\x07\x64\x76\x19\x60\x1a\xa3\x4b\x16\xf2\x98\x05\x28\x26\x11\x8b\x39\x1a\xa3\xc7\x47\xf7\xaf\x6b\xec\x93\x2f\x78\x4d\xb6\xdb\xc9\x20\x1d\x7c\x90\xce\x0c\x68\x78\x83\x56\x31\x59\x4e\xfb\x2b\xce\xa3\x64\x3c\x18\x2c\x01\x20\x71\x7d\xc6\xfc\x80\xe0\x88\x26\xee\x82\xad\x07\x8b\x24\xf9\xf3\x12\xaf\x69\xf0\x30\xfd\x3d\x22\xe1\x9f\xbe\xe2\x30\x19\x9f\x9d\x9c\x1c\x9f\xa7\x3f\x94\xe3\x80\x2e\x8e\xcf\x8a\x6f\xa7\xe5\x6f\x7d\xe0\x26\x98\xf6\x13\xfe\x10\x90\x64\x45\x08\xef\x23\xfe\x10\x91\x69\x9f\x93\x7b\x2e\xb0\xfb\xb3\x12\x3b\x62\x6c\x6f\x37\xb6\x97\xf2\xd7\xcb\xf9\x5b\xe3\xfb\x85\x17\xba\x73\xc6\x78\xc2\x63\x1c\x89\x5f\x04\x8b\x82\x6f\x07\xdf\x91\x84\xad\xc9\xe0\xcc\x3d\x77\x87\x02\xb9\x72\xdb\x5d\x53\x18\x9b\x24\xbd\x5c\x7c\x49\x25\xa5\x2d\xae\x39\xf3\x1e\xd0\x63\xf1\xab\xb8\xe4\xf4\x54\xf2\x31\xea\x0b\xd9\x91\x90\xbd\x7f\x8c\x12\xf8\x70\x12\x12\xd3\xe5\x87\xca\x8c\x35\x8e\x7d\x1a\x8e\xd1\x49\xf5\x76\x84\x3d\x8f\x86\xbe\x76\x7f\x8e\x17\x37\x7e\xcc\x36\xa1\x37\x46\xfe\x8a\x25\xfc\x6e\x45\x39\x31\xce\x75\xe6\x8c\x73\xb6\x1e\xa3\x11\x59\xef\x06\x6c\x8b\x6f\x83\x37\xe8\xdb\x43\xc4\x7c\x50\xca\xea\x01\xbd\x19\x14\x0f\x8a\x2f\x2e\x98\xd4\x33\x49\x98\xd0\xff\x90\x31\x1a\xba\x67\xb5\xc8\x7e\xc0\xe6\x58\x2c\xc1\x07\xb6\xe1\x66\xf0\x05\x20\x61\x1a\x92\x58\xa1\xb0\x13\xbd\x2c\xfc\xd6\x84\x00\xfc\xc5\x4b\x7a\x3f\xc6\x4b\xae\xc1\x08\x78\x12\xf2\x31\xea\xf5\xaa\xea\xf1\x68\x12\x01\x5f\x63\x34\x0f\xd8\xe2\xa6\xfa\x4c\x22\xc2\x13\xc6\x57\xcd\xa4\x63\x76\xa7\xd0\x2b\x0c\x89\x9c\xd1\x49\x74\xdf\x3a\xdd\xc8\xf4\x73\xf0\xf6\x63\x11\xe0\x24\x79\x33\xed\x2d\x58\xe0\xf4\x7e\xd6\x6b\xb7\xca\xa6\xb8\x96\x01\xc3\xa0\xb1\x80\x2c\xb9\xb2\xec\xd8\xbd\x30\xba\x9c\x38\x67\xb1\x47\x62\x58\x5d\x2d\x32\x0a\xf2\xe7\x0a\xf5\x3b\xea\xf1\xd5\x18\xbd\x3d\xf9\xb5\x79\x6e\x84\x43\x12\x28\x73\x61\x55\x15\xcc\x0f\x61\xe1\x95\x57\x55\xca\xa3\xe4\x2b\xc6\x1e\xdd\x24\x63\x74\xa6\x0a\x57\x76\x1d\x83\xd7\x48\x11\x57\xd8\x03\xcb\x20\x50\x0c\x1a\xc2\xcf\x08\x7e\x0e\xc9\x48\xfc\xb1\xe1\x77\x35\x32\xae\x09\x87\xb3\xa8\xce\xc1\x0b\x27\x75\x2b\x5e\x5a\x92\x27\x1f\x90\xb0\x80\x7a\x92\x2b\x1f\xbc\x26\x81\xa7\xcc\x82\xa7\x31\xac\x05\xee\x2c\x56\x34\x50\x1d\x39\xe3\x2d\x87\x37\xba\x1a\xa8\xfc\x37\x08\x01\xb0\x4c\x8d\x1e\x8c\xa3\xc8\x59\xa5\xcf\x1f\x6b\x55\x7d\x38\x1a\xbe\x3f\xbf\x3a\x55\xd6\x32\x0b\x58\x6c\x34\xc3\xce\x8d\x84\x11\xb2\x9f\x9a\xd8\x38\x3c\x17\x36\xd2\x9e\x57\x2c\x09\xde\x28\x8c\x29\x46\x1e\x8e\xce\x4f\x47\xa7\x17\x0a\x18\x4b\x28\xa7\x0c\x28\x42\x22\xc1\x9c\xde\x92\x66\xad\x96\x64\x5e\x0d\xeb\x42\xc0\x07\x3d\x64\xde\x11\xea\xaf\x84\x6f\x89\x0f\x12\x57\x47\x88\xc4\xe6\x40\x76\x0a\x93\x25\x8b\xc1\x18\x9b\x28\x22\xf1\x02\x27\x16\xbc\x50\x91\xbf\xeb\x7c\x5c\xd7\x8d\xa4\x04\x89\xd6\x07\x36\x17\x10\x1e\x55\x4e\x32\xc3\x18\x55\x55\xb6\x6a\xec\xcf\xf1\xd1\xe8\xed\xdb\x63\xb4\xfb\xcb\xbd\x78\x6d\xb9\x82\x0f\x3f\x5f\x7e\xbe\xba\x1a\xda\x4a\xa7\xf9\x55\x29\x09\x69\x6e\xd3\xac\x6d\x13\xa1\x64\xb3\x06\xcb\xa9\xa9\x1c\x8a\x0b\x02\x96\x4e\x71\xdc\xf3\xda\x4c\x97\x55\x4e\x46\x07\xc9\x9e\xd5\x07\x85\xf6\x4c\x21\xd3\x73\x6d\xaa\xc1\x1b\xce\x54\xff\xb9\x77\xb2\x28\xfb\xfe\x5c\x33\x7f\x99\xf6\x69\x0d\x6d\x90\xe9\xab\x28\x74\x10\x5b\x22\xbe\x22\x28\xe5\xc0\x28\x5f\xfa\xc8\x0d\x99\x47\xd4\x25\xd8\xe0\x56\xe2\x2a\x12\x1d\x0d\xa5\xa2\x0d\xf9\x2e\xd7\xfd\x48\x8b\xe4\x99\x7c\xfa\x83\x5c\x31\x23\x3b\xad\xa6\x8c\xbb\x1e\x53\x4d\xd4\xc6\xfd\x1e\xac\x29\xd9\x49\x1f\x50\x9f\x7b\xcb\x25\x5f\x8c\x1f\x3e\xa8\x59\xb1\x1a\xef\xf2\xbc\x25\x3d\xf4\xe4\x18\xa5\xff\xb9\xa3\x92\x6f\xa6\xbc\x94\x1d\xd2\xe8\xce\x30\xa5\x6c\xf6\x16\x3d\xba\x9f\xc8\x12\x6a\xae\xa1\x49\x9f\x65\x11\xe6\x01\x2e\x5b\xba\x0d\xf5\x32\x06\x4b\x2c\xa0\x94\x6c\x81\x3d\x24\x17\x43\x32\x6c\x09\x98\x65\xe0\xdf\xc0\x84\xad\xa0\x9f\xdf\x0f\x3f\x9f\x9f\xda\x83\xfe\x8d\x80\x79\xd7\xad\xb0\x57\x57\x1f\xdf\x8d\xce\xed\x61\xaf\xa1\xda\x6c\xc3\xbc\xf8\xcb\xe5\xe9\xd9\x47\x7b\xcc\x2f\xc4\x87\xe8\x48\xe7\x81\xd1\x03\x2a\xd0\xa7\xef\xce\xde\x9d\x5d\xd9\x43\xff\x33\xbc\x09\xd9\x5d\xf8\xdc\xb8\x50\xd2\xb0\x68\x13\xd5\x95\xcc\x21\x0b\x89\xd1\x19\xa1\xa5\xd4\x4a\x88\xc2\xc1\xf1\x1c\xbc\x60\xa3\x17\x83\x69\xca\x1a\x9e\x94\x2b\x55\x71\x29\x65\x93\x9e\x61\xb3\x01\xc2\x8f\xc7\xc8\x19\xbe\xd5\x06\xa4\x4f\x46\xcf\x54\x9e\x36\xb8\xb9\x14\xb4\xa8\x95\x0c\x65\x52\x73\xbd\x2c\x23\x8b\x1a\x28\xf2\x6a\x58\x2d\xbe\x65\x5d\xb1\x0b\x42\xe2\x8f\xac\x67\x22\x1c\x43\x95\xd1\xd5\xc4\xcd\x0d\x5d\xbf\xdf\xcd\x98\x32\xdb\xe9\x96\x4c\xed\xf0\xb6\xc6\xc0\xb9\xfd\x34\xb5\x35\xb5\x68\xd9\x82\x3b\x31\x67\x0b\xb5\x95\x4f\xf5\x9f\xcd\x19\x4a\xa3\xca\x7a\xb7\xde\x56\xe5\xb2\xb9\xac\xdf\xba\xef\x46\x10\xb9\x8b\x91\xd9\xb4\xb3\x61\xe6\x04\x2a\x54\x35\xd9\xff\x9f\x5b\x46\xac\x7b\xf9\x57\xbb\x65\x34\x6f\xfc\x9f\x58\x09\xcd\x40\x17\xb7\x8a\x91\xd8\x2d\x89\xa1\xc6\x00\xf7\x5c\x51\xcf\x23\xa1\xa1\x2f\xd8\x0d\x21\x41\x40\xa3\x84\x26\xd6\x94\xc7\x2b\x31\xd9\x14\xf1\x59\x84\x17\x94\x83\x55\xdc\x8b\xce\x68\x8d\xf1\xde\x60\x65\x51\xfc\xe6\x36\x1d\x5e\x68\xb6\xca\x8c\xe4\xd1\x75\xb5\x8e\xaa\xd4\xbe\x73\x1c\x27\xe6\x6a\x17\x9e\x38\x73\xbf\x8e\x9d\xfa\x42\xb6\xa8\x09\x35\x86\x72\x5e\xcf\xeb\xf3\x93\x5d\x57\x2a\x59\xc3\x5d\x76\x93\xac\x5c\x53\xf3\x0b\x6d\xaf\x40\x5c\xa9\x43\x36\x6c\x54\x6a\x65\x54\x0a\x56\x2d\x88\xdb\x4a\xf6\x4c\xc4\xa2\xcc\x7c\x52\x85\x99\x83\x15\xd5\xe5\x13\x0b\xcb\x1c\x4f\x16\x95\x4f\xac\x27\x73\xac\xac\x96\x7c\x62\x19\x99\xa3\x5d\x6b\x1b\x96\x9d\xab\xc7\x1c\xaa\x54\x39\x3e\xb1\xb8\xcb\x11\xf3\x82\x71\x2f\x38\xf0\xd9\xdb\x4d\x10\x92\x18\xcf\x69\x00\xe6\x24\x35\xee\xdb\xd0\x8c\x8b\x68\x01\xf1\xbd\x4b\x37\x6d\xdc\xd5\x4d\x29\xb8\x0a\x3b\xc7\xfa\x88\x25\xc1\x7c\x13\x03\xa7\x33\xb4\x51\x17\x5f\x87\x37\x02\x4d\x4c\x34\x91\x08\x68\xc2\xf3\x0c\x53\x2d\x9b\x4d\x88\x19\x92\x6a\x9d\x27\x6d\xee\x64\x98\xf5\xdb\x93\xd5\xbc\x7a\x78\x79\xf5\xe9\xe2\xd3\xa5\x15\xe6\x1f\x7f\xc8\x77\x56\x75\x7b\x62\x43\xf3\x4e\xce\x0e\x46\x5d\x4c\x46\x9c\xac\x0a\x19\x89\x8d\x21\xf4\x0b\x5d\x0b\x9d\xe3\xb6\x42\xb7\x8c\xac\x6e\x37\x69\xfb\xc1\x17\xea\xc6\x56\x3e\x22\xce\xf6\x1e\xdc\x9a\xf7\x3a\xf5\x92\xec\x5a\xf4\x10\xaf\xf5\x22\x4e\x6a\xda\x22\x78\x6a\xb0\xbb\x1e\xbd\x1e\xd7\x2a\x8c\x6a\xc8\x69\x93\xde\x80\x6a\x13\x50\x35\xd4\xbc\x4b\x6f\xc0\xb5\x09\xad\x1a\xae\x6c\xd3\x1b\x40\x6d\x82\xac\x06\x5a\xee\xd3\x1b\xb0\x6d\xc2\xad\x86\x5d\x34\xea\x7b\x01\x43\xe0\x85\xea\x82\xd4\x95\x4b\xf2\x59\xf6\x61\xf6\xc9\xc5\x26\x4e\x04\x8d\x88\x51\x7d\x27\xda\xec\xb0\xe2\xaa\x8f\x3c\x6a\x94\x68\x92\x43\x5c\x86\x50\x6b\xd2\x9b\x41\x92\xac\x42\x6d\x4a\xf5\x16\x51\x50\x22\xba\x8b\x80\x25\xc4\x2b\x45\x6c\xab\x0d\x8e\x86\x9d\x6c\x47\x54\xf3\x75\x28\xcb\x80\x68\x3b\x16\xbb\x24\xa7\xd7\xa8\xcd\x9b\xcd\x95\xcd\x10\xcd\x52\x95\xed\xe6\xb6\x68\x55\x61\xde\xb4\xa7\xdc\xf6\xee\x42\x48\x06\x4c\x74\xa5\xd2\xb1\xa7\xed\xb0\x73\xad\x77\x8b\xa5\x66\xbf\xb1\x1a\xd6\x7a\xdf\xd6\x37\x6a\x99\xaa\x63\x13\x65\x3b\x3d\xe4\xd9\xc1\xac\x8f\x8e\x05\xb6\x01\x3e\xcf\x12\xed\xf8\x56\xb9\xc2\x40\x41\x64\x0b\x0b\x74\x9b\x9c\x61\x40\x4f\xb3\x86\x05\xbe\x4d\xee\x30\xe0\x43\xf6\xb0\x00\xb7\xc9\x21\x06\xf0\x5d\x16\xb1\xa0\x61\x93\x4b\x0c\x34\xb2\x6c\xf2\x4c\x04\xf2\xc6\xd7\x31\xbd\x01\x7b\x91\x68\xd6\xea\x63\x82\x98\xe3\xd1\x98\x2c\xb2\xde\x9c\xdd\x39\x31\x81\x3c\x90\x68\x9b\xb5\x15\x6f\x3e\x55\xb9\xa8\xdf\x8b\xb1\xd0\xc4\x3e\xa1\x31\x8f\x48\x17\x4d\xbb\xce\x9a\xcc\xb6\xcc\x3c\x4f\x4f\x6e\x44\x7e\xae\x06\xdd\x08\xfe\x1c\xdd\xba\x11\xf8\x79\x5a\x77\x23\xf4\x33\xf4\xf1\x46\xdc\xe7\x6b\xea\x8d\xf0\x7b\x77\xf8\x93\x41\x76\xea\x6e\x32\x48\x8f\x30\x1e\x4c\xc4\xb9\xbb\xec\x04\xa0\xd8\xe6\x94\xc7\x9d\xc4\x69\xa7\xec\x38\x59\x6f\x77\x42\x6f\x92\x9d\xd4\xc8\x86\xec\xce\x6e\x94\xc6\xa4\xe3\x86\xc6\xf3\x90\x40\x73\x58\x42\x1b\xa4\x93\xb3\xe3\x80\x2a\x03\xbb\xf3\x0a\xf9\xb9\x34\x8d\xca\x68\x26\xcf\x56\xea\xa7\x2c\xe1\xc9\x41\x75\x6c\x92\x06\x99\x1c\x3c\x0b\xb7\x0a\x62\xce\x82\x7e\x57\x5c\x8f\x8f\x77\x94\xaf\xd0\x2b\xa5\xec\xbf\x04\x7d\x73\x34\x9e\x42\xdf\x26\xbe\x7d\x0c\x82\xef\xd5\x01\xdb\xad\x11\x6e\x12\xcd\x26\x49\x84\x0b\x96\xc4\xe1\xc0\x1e\xdc\x02\x89\x43\x7f\xf6\x8d\x71\xf0\x52\x21\x99\x91\x9e\x2b\x9f\x6f\xb7\xea\x56\x8d\x30\xaf\x9c\x0f\x5f\x00\x1b\x3e\x22\xb3\x30\xf5\x0f\x4a\x26\x28\x27\x25\x83\xaa\x76\x8a\xa1\x4b\xe4\x73\x74\x64\x66\x35\x55\x50\x2f\x5b\xb2\xbd\xd7\xe8\xa4\x46\x23\x2a\x79\x19\x98\xf3\x69\xb3\x7c\xc9\x8f\x51\xae\xa3\x3a\xdd\x28\x04\xc5\x82\x28\xb4\x52\x6b\xdd\x54\x10\x12\x7a\xa0\x54\x3b\x81\x76\x2e\xde\x55\xa6\xd2\xcc\x59\x29\x50\x58\x4b\x56\x9a\xff\x52\xc2\x41\x5c\xec\x2a\x95\x98\x32\x13\xf1\xd4\x5a\x0e\x31\xe3\xa5\x04\x48\x73\x46\x57\x19\xb2\x59\xb3\x2c\xe3\x58\x4b\x92\xcd\x7b\x29\x61\x44\x66\xed\x2a\x8a\x9c\x33\x93\x39\xd9\x5a\x0c\x39\xe7\xa5\x84\xc8\x6b\x8f\xae\x82\x14\xf3\x66\x45\xf5\x62\x2d\x50\x31\xf7\xa5\x84\xca\x4a\xb5\xae\x32\xe5\xd3\x66\x79\xa9\x67\x2d\x51\x3e\xb3\xb3\x40\x35\x69\xa0\x76\x6a\x99\xe7\x6a\x0d\xd2\x90\x0a\x6a\x05\x45\xb2\xec\x98\xf6\xb2\x56\xa2\x4e\xc8\x7f\x64\x84\x34\x61\x7f\xed\xb5\x89\x59\xbf\x6e\xf6\xa3\x5d\x5a\x3a\x7b\x10\x97\x9e\xb4\x1f\xe1\xcc\x09\xf7\x20\x9a\x45\xa1\xfd\xc8\x16\x21\x6c\x0f\xc2\x22\x90\xef\x47\x35\x4d\x01\x7b\x90\x2c\xe5\xc0\xfd\x28\x57\x92\xe8\x1e\x0c\xe4\xe5\xc5\x7e\xd4\x77\xc5\x49\x33\xe9\x86\x47\x75\x7e\x6d\x98\x02\xa1\x22\xad\x7f\xab\xb7\x0f\xea\x04\xac\x73\xf3\xc7\x47\xf4\x8a\x62\x59\xec\x1a\x08\x3f\x3e\xc6\x38\xf4\x09\x7a\x75\x73\xfc\xea\x56\x0c\x52\x37\xc8\x61\x6e\xd3\xb4\x5b\x93\x30\xb8\xa2\x74\x28\xf4\xbf\x8a\x1d\x02\xca\x1f\xb6\xdb\xfc\xdf\x26\x1d\x02\x5b\xae\x28\xfd\x11\xdc\x6b\x0f\x66\x1e\xe3\xcd\x2a\x2f\x8d\x95\x27\x26\x5a\xe2\xdd\x6c\x17\xb9\xdd\xbc\x01\xb1\x8b\xcc\x72\x76\x45\x24\xcb\x09\x57\xe9\xd6\x76\xe3\xf8\x9a\x47\x93\x01\x36\xd9\xd5\xbc\x94\x4c\xf7\x15\xdc\xec\xd7\xdd\xef\x4a\xa7\x95\x76\x7e\x6a\xeb\x66\x66\xad\xac\x78\xf1\xaf\x2d\x2c\x8c\x99\xbe\x31\x69\xcb\x48\xd4\x9b\xf6\x40\x6d\xd7\x38\xe1\xd7\xf2\x1d\x41\x6a\xa7\x5e\x05\xa5\x01\x44\x02\xad\x4e\x2b\xc3\xb3\x37\x17\x3d\xe4\x61\x8e\x1d\xce\x7c\x3f\x20\x8e\x7c\x62\xa6\x35\x33\xdc\x84\x4e\xf5\xb4\x85\x6a\x49\xd6\xfc\x85\x46\x0b\xa3\x72\xda\x26\x68\x1f\x24\x2e\x70\x9d\xd4\xfb\x12\xb0\x12\xf1\xbe\x5b\x79\xac\x91\x62\x40\x15\x3e\x2d\xd8\x2c\x26\xeb\x52\xe6\xea\xb5\x07\x41\xa8\x54\x43\x15\x01\xa1\xf0\x45\x24\xbb\x6d\xf9\xe8\x3b\x2c\x19\xb1\x44\xe5\x53\x71\x13\x39\xa8\xd2\x8b\x2f\x31\x5a\x62\x87\xdc\xc3\xaf\x6b\x2c\x56\xb3\xc3\x63\x0a\x6a\x12\xe6\xc6\xf0\xcd\x49\xf7\x19\xa7\x3d\x1e\x6f\x48\x2f\x6f\xb6\xed\xc5\x6d\xf6\x72\xf5\x2a\x6c\xe4\xda\xed\x2c\x18\x49\x6e\x82\x5c\x38\x25\x2a\x77\xd3\x70\xd9\xce\xca\xfb\x77\x50\x6c\x1e\xc8\xea\x03\x71\x23\x34\x36\x22\x17\x8e\x26\xde\xaa\x0a\xdf\x2a\x05\x7b\x63\x34\x6b\xa5\x93\xae\x88\x22\xb1\x00\x58\xcf\xb8\x64\xba\x23\xa7\xf1\x59\x9c\x0c\x48\x16\x31\x8d\x78\xbe\xca\x3a\xd9\xbb\x40\xc3\x59\x82\x13\x88\xd7\xe2\x1f\xe7\x8a\x90\xc5\x71\xec\x13\x3e\xed\xcd\x03\x1c\xde\x40\xc3\x0d\xf7\x3b\x6b\x61\x32\x08\x68\x97\xe5\x6a\x1b\x4d\xec\x71\x9b\x9a\x92\x7d\xc7\xb6\xf3\xd9\x96\x5e\xf7\xc8\xa6\xe6\xdb\xf3\x18\x0d\xd4\x12\xac\x18\x59\xf9\x5a\x29\xcc\xca\xc9\x74\x92\xae\xa0\x1d\xca\xd1\x72\x13\xca\xb1\x47\xaf\xf5\x97\xab\x09\x47\x69\x0a\x8a\x13\x34\x45\x1e\x5b\x6c\xd6\x04\xaa\xce\x7f\x6f\x48\xfc\xf0\x95\x04\x40\x84\xc5\x1f\x83\xe0\xa8\xff\x43\x4b\x57\x3f\xfb\xaf\xd5\x57\xfc\x61\xc2\x02\xe2\x06\xcc\x3f\xca\x41\x61\x48\x65\xcc\x92\xc5\xe8\xe8\x16\xc7\x88\x02\xb9\x7c\x90\x1b\x90\xd0\xe7\x2b\x88\xa6\xc3\x0f\xf0\x60\x36\x45\x27\xf0\xe9\x38\x2a\xbf\xe2\xca\xe7\xfc\xa0\x3f\x5d\x16\x2e\x02\xba\xb8\x01\xa4\x42\x44\x62\x9a\x23\x2e\xe2\xa6\x0e\xe0\xa6\x87\x7d\xbf\x88\xdd\x70\xe9\xc8\xd7\x34\xe1\x6e\x8a\x7a\xd4\x4f\xcf\x00\xa8\x82\x89\x6b\x5b\xbd\xb5\x5b\x55\xdb\xd7\x47\xd9\x70\x30\x4a\xa6\xfa\xc9\x20\xdd\x1c\x17\xbb\xe5\xe2\xff\x04\xf0\xdf\x00\x00\x00\xff\xff\x87\xab\x72\xed\x19\x40\x00\x00") +var _templatesAnalysisTemplateHtml = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xdc\x5c\x7d\x6f\xe3\xb6\x19\xff\x3f\x9f\x82\x75\xae\x70\xae\x8b\xe5\xd8\xc9\xa5\xa9\xcf\xf6\xd0\xe5\x2e\xe8\x80\xac\x1d\x76\x5d\x81\xa1\x38\x14\xb4\x45\xcb\x44\x64\x51\x93\xe8\xbc\x2c\xf0\x77\xdf\x43\x52\x92\x25\x92\x92\x28\x27\xc1\x80\xe9\x9a\xb3\x23\x92\xbf\xe7\x8d\xcf\x1b\xa5\xeb\xf4\x9b\x4f\xbf\x5c\xff\xfa\xaf\xbf\x7f\x46\x6b\xbe\x09\xe7\x47\x53\xf1\x81\x42\x1c\x05\xb3\x1e\x89\x7a\xf3\x23\xb8\x43\xb0\x3f\x3f\x42\x70\x4d\x39\xe5\x21\x99\x5f\x87\x98\x26\xe8\x9a\x45\x3c\x61\x21\x4a\x48\xcc\x12\x8e\x26\xe8\xf9\xd9\xfb\xeb\x06\x07\xe4\x67\xbc\x21\xbb\xdd\x74\xa8\x26\x1f\xa9\x95\x21\x8d\xee\xd0\x3a\x21\xab\x59\x7f\xcd\x79\x9c\x4e\x86\xc3\x15\x00\xa4\x5e\xc0\x58\x10\x12\x1c\xd3\xd4\x5b\xb2\xcd\x70\x99\xa6\x7f\x5e\xe1\x0d\x0d\x9f\x66\xbf\xc4\x24\xfa\xd3\x17\x1c\xa5\x93\x8b\xb3\xb3\xd3\x4b\xf5\x43\x39\x0e\xe9\xf2\xf4\xa2\xf8\x76\x5e\xfe\xd6\x07\x6e\xc2\x59\x3f\xe5\x4f\x21\x49\xd7\x84\xf0\x3e\xe2\x4f\x31\x99\xf5\x39\x79\xe4\x02\xbb\x3f\x2f\xb1\x23\xe6\xf6\xf6\x73\x7b\x8a\xbf\x5e\xce\xdf\x06\x3f\x2e\xfd\xc8\x5b\x30\xc6\x53\x9e\xe0\x58\xfc\x22\x58\x14\x7c\x0f\xf0\x03\x49\xd9\x86\x0c\x2f\xbc\x4b\x6f\x24\x90\x2b\xb7\xbd\x0d\x85\xb9\x69\xda\xcb\xc5\x97\x54\x14\x6d\x71\x2d\x98\xff\x84\x9e\x8b\x5f\xc5\x25\x97\x2b\xc9\x27\xa8\x2f\x64\x47\x42\xf6\xfe\x29\x4a\xe1\x63\x90\x92\x84\xae\x3e\x56\x56\x6c\x70\x12\xd0\x68\x82\xce\xaa\xb7\x63\xec\xfb\x34\x0a\x8c\xfb\x0b\xbc\xbc\x0b\x12\xb6\x8d\xfc\x09\x0a\xd6\x2c\xe5\x0f\x6b\xca\x89\x75\xed\x60\xc1\x38\x67\x9b\x09\x1a\x93\xcd\x7e\xc2\xae\xf8\x36\xfc\x0e\xfd\xfa\x14\xb3\x00\x94\xb2\x7e\x42\xdf\x0d\x8b\x81\xe2\x8b\x07\x26\xf5\x6d\x12\xa6\xf4\x3f\x64\x82\x46\xde\x45\x2d\x72\x10\xb2\x05\x16\x5b\xf0\x89\x6d\xb9\x1d\x7c\x09\x48\x98\x46\x24\xd1\x28\xec\x45\x2f\x0b\xbf\xb3\x21\x00\x7f\xc9\x8a\x3e\x4e\xf0\x8a\x1b\x30\x02\x9e\x44\x7c\x82\x7a\xbd\xaa\x7a\x7c\x9a\xc6\xc0\xd7\x04\x2d\x42\xb6\xbc\xab\x8e\x49\x44\x18\x61\x7c\xdd\x4c\x3a\x61\x0f\x1a\xbd\xc2\x90\x68\x30\x3e\x8b\x1f\x5b\x97\x5b\x99\x7e\x0d\xde\x7e\x5f\x86\x38\x4d\xbf\x9b\xf5\x96\x2c\x1c\xf4\xbe\xd6\x6b\xb7\xca\xa6\xb8\x56\x21\xc3\xa0\xb1\x90\xac\xb8\xb6\xed\xd8\xa3\x30\xba\x5c\xb8\x60\x89\x4f\x12\xd8\x5d\x2d\x32\x0a\xf2\x97\x1a\xf5\x07\xea\xf3\xf5\x04\x7d\x38\xfb\xb6\x79\x6d\x8c\x23\x12\x6a\x6b\x61\x57\x15\xcc\x8f\x60\xe3\x95\x77\x95\xe2\x51\xf2\x95\x60\x9f\x6e\xd3\x09\xba\xd0\x85\x2b\xbb\x8e\xc5\x6b\xa4\x88\x6b\xec\x83\x65\x10\x28\x06\x8d\xe0\x67\x0c\x3f\xc7\x64\x2c\xfe\xb8\xf0\xbb\x1e\x5b\xf7\xc4\x80\xb3\xb8\xce\xc1\x0b\x27\xf5\x2a\x5e\x5a\x92\x27\x9f\x90\xb2\x90\xfa\x92\xab\x00\xbc\x26\x85\x51\xe6\xc0\xd3\x04\xf6\x02\x1f\x2c\xd7\x34\xd4\x1d\x39\xe3\x2d\x87\xb7\xba\x1a\xa8\xfc\x27\x08\x01\xb0\x4d\xad\x1e\x8c\xe3\x78\xb0\x56\xe3\xcf\xb5\xaa\x3e\x1e\x8f\x7e\xb8\xbc\x39\xd7\xf6\x32\x0b\x59\x62\x35\xc3\xde\x8d\x84\x11\xb2\x9f\x9a\xd8\x38\xba\x14\x36\x32\xc6\x2b\x96\x04\x6f\x14\xc6\x14\x33\x8f\xc7\x97\xe7\xe3\xf3\x2b\x0d\x8c\xa5\x94\x53\x06\x14\x21\x91\x60\x4e\xef\x49\xb3\x56\x4b\x32\xaf\x47\x75\x21\xe0\xa3\x19\x32\x1f\x08\x0d\xd6\xc2\xb7\xc4\x07\x49\xaa\x33\x44\x62\x1b\x40\x76\x8a\xd2\x15\x4b\xc0\x18\xdb\x38\x26\xc9\x12\xa7\x0e\xbc\x50\x91\xbf\xeb\x7c\xdc\xd4\x8d\xa4\x04\x89\x36\x00\x36\x97\x10\x1e\x75\x4e\x32\xc3\x58\x55\x55\xb6\x6a\x12\x2c\xf0\xc9\xf8\xc3\x87\x53\xb4\xff\xcb\xbb\x7a\xef\xb8\x83\x8f\x3f\x5f\x7f\xbe\xb9\x19\xb9\x4a\x67\xf8\x55\x29\x09\x19\x6e\xd3\xac\x6d\x1b\xa1\x74\xbb\x01\xcb\xe9\xa9\x1c\x8a\x0b\x02\x96\x56\x38\xde\x65\x6d\xa6\xcb\x2a\x27\xab\x83\x64\x63\xf5\x41\xa1\x3d\x53\xc8\xf4\x5c\x9b\x6a\xf0\x96\x33\xdd\x7f\x1e\x07\x59\x94\xfd\xe1\xd2\x30\x7f\x99\xf6\x79\x0d\x6d\x90\xe9\x8b\x28\x74\x10\x5b\x21\xbe\x26\x48\x71\x60\x95\x4f\x0d\x79\x11\xf3\x89\xbe\x05\x1b\xdc\x4a\x5c\x45\xa2\xa3\x91\x54\xb4\x25\xdf\xe5\xba\x1f\x1b\x91\x3c\x93\xcf\x1c\xc8\x15\x33\x76\xd3\xaa\x62\xdc\xf3\x99\x6e\xa2\x36\xee\x0f\x60\x4d\xcb\x4e\xe6\x84\xfa\xdc\x5b\x2e\xf9\x12\xfc\xf4\x51\xcf\x8a\xd5\x78\x97\xe7\x2d\xe9\xa1\x67\xa7\x48\xfd\xe7\x8d\x4b\xbe\xa9\x78\x29\x3b\xa4\xd5\x9d\x61\x49\xd9\xec\x2d\x7a\xf4\x3e\x91\x15\xd4\x5c\x23\x9b\x3e\xcb\x22\x2c\x42\x5c\xb6\x74\x1b\xea\x75\x02\x96\x58\x42\x29\xd9\x02\x7b\x4c\xae\x46\x64\xd4\x12\x30\xcb\xc0\x3f\x81\x09\x5b\x41\x3f\xff\x30\xfa\x7c\x79\xee\x0e\xfa\x37\x02\xe6\xdd\xb4\xc2\xde\xdc\xfc\xf8\xfd\xf8\xd2\x1d\xf6\x16\xaa\xcd\x36\xcc\xab\xbf\x5c\x9f\x5f\xfc\xe8\x8e\xf9\x33\x09\x20\x3a\xd2\x45\x68\xf5\x80\x0a\xf4\xf9\xf7\x17\xdf\x5f\xdc\xb8\x43\xff\x33\xba\x8b\xd8\x43\xf4\xda\xb8\x50\xd2\xb0\x78\x1b\xd7\x95\xcc\x11\x8b\x88\xd5\x19\xa1\xa5\x34\x4a\x88\xc2\xc1\xf1\x02\xbc\x60\x6b\x16\x83\x2a\x65\x8d\xce\xca\x95\xaa\xb8\xb4\xb2\xc9\xcc\xb0\xd9\x04\xe1\xc7\x13\x34\x18\x7d\x30\x26\xa8\x91\xf1\x2b\x95\xa7\x0d\x6e\x2e\x05\x2d\x6a\x25\x4b\x99\xd4\x5c\x2f\xcb\xc8\xa2\x07\x8a\xbc\x1a\xd6\x8b\x6f\x59\x57\xec\x83\x90\xf8\x23\xeb\x99\x18\x27\x50\x65\x74\x35\x71\x73\x43\xd7\xef\x77\x33\xa6\xcc\x76\xa6\x25\x95\x1d\x3e\xd4\x18\x38\xb7\x9f\xa1\xb6\xa6\x16\x2d\xdb\x70\x67\xf6\x6c\xa1\xb7\xf2\x4a\xff\xd9\x9a\x91\x34\xaa\xac\x77\xeb\x6d\x55\x2e\x9b\xcb\xfa\xad\xfb\x6e\x05\x91\xa7\x18\x99\x4d\x3b\x1b\x66\x41\xa0\x42\xd5\x93\xfd\xff\xb9\x65\xc4\xbe\x97\x7f\xb5\x5b\xc6\xf0\xc6\xff\x89\x95\xd0\x1c\x74\x71\xaf\x19\x89\xdd\x93\x04\x6a\x0c\x70\xcf\x35\xf5\x7d\x12\x59\xfa\x82\xfd\x14\x12\x86\x34\x4e\x69\xea\x4c\x79\xb2\x16\x8b\x6d\x11\x9f\xc5\x78\x49\x39\x58\xc5\xbb\xea\x8c\xd6\x18\xef\x2d\x56\x16\xc5\x6f\x6e\xd3\xd1\x95\x61\xab\xcc\x48\x3e\xdd\x54\xeb\xa8\x4a\xed\xbb\xc0\x49\x6a\xaf\x76\x61\x64\xb0\x08\xea\xd8\xa9\x2f\x64\x8b\x9a\xd0\x60\x28\xe7\xf5\xb2\x3e\x3f\xb9\x75\xa5\x92\x35\xdc\xe5\x34\xc9\xc9\x35\x0d\xbf\x30\xce\x0a\xc4\xa5\x1c\xb2\xe1\xa0\xd2\x28\xa3\x14\x58\xb5\x20\x6e\x2b\xd9\x33\x11\x8b\x32\xf3\x45\x15\x66\x0e\x56\x54\x97\x2f\x2c\x2c\x73\x3c\x59\x54\xbe\xb0\x9e\xcc\xb1\xb2\x5a\xf2\x85\x65\x64\x8e\x76\x6b\x1c\x58\x76\xae\x1e\x73\xa8\x52\xe5\xf8\xc2\xe2\x2e\x47\xcc\x0b\xc6\x83\xe0\xc0\x67\xef\xb7\x61\x44\x12\xbc\xa0\x21\x98\x93\xd4\xb8\x6f\x43\x33\x2e\xa2\x05\xc4\xf7\x2e\xdd\xb4\xf5\x54\x57\x51\xf0\x34\x76\x4e\xcd\x19\x2b\x82\xf9\x36\x01\x4e\xe7\x68\xab\x6f\xbe\x0e\x4f\x04\x9a\x98\x68\x22\x11\xd2\x94\xe7\x19\xa6\x5a\x36\xdb\x10\x33\x24\xdd\x3a\x2f\x3a\xdc\xc9\x30\xeb\x8f\x27\xab\x79\xf5\xf8\xfa\xe6\xd3\xd5\xa7\x6b\x27\xcc\x3f\xfe\x90\xcf\xac\xea\xce\xc4\x46\xf6\x93\x9c\x3d\x8c\xbe\x99\xac\x38\x59\x15\x32\x16\x07\x43\xe8\x1b\xba\x11\x3a\xc7\x6d\x85\x6e\x19\x59\x3f\x6e\x32\xce\x83\xaf\xf4\x83\xad\x7c\x46\x92\x9d\x3d\x78\x35\xcf\x75\xea\x25\xd9\xb7\xe8\x11\xde\x98\x45\x9c\xd4\xb4\x43\xf0\x34\x60\xf7\x3d\x7a\x3d\xae\x53\x18\x35\x90\x55\x93\xde\x80\xea\x12\x50\x0d\xd4\xbc\x4b\x6f\xc0\x75\x09\xad\x06\xae\x6c\xd3\x1b\x40\x5d\x82\xac\x01\x5a\xee\xd3\x1b\xb0\x5d\xc2\xad\x81\x5d\x34\xea\x07\x01\x43\xe0\x85\xea\x82\xd4\x95\x4b\x72\x2c\xfb\xb0\xfb\xe4\x72\x9b\xa4\x82\x46\xcc\xa8\x79\x12\x6d\x77\x58\x71\xd5\x47\x1e\x3d\x4a\x34\xc9\x21\x2e\x4b\xa8\xb5\xe9\xcd\x22\x49\x56\xa1\x36\xa5\x7a\x87\x28\x28\x11\xbd\x65\xc8\x52\xe2\x97\x22\xb6\xd3\x01\x47\xc3\x49\xf6\x40\x54\xf3\x75\x28\xab\x90\x18\x27\x16\xfb\x24\x67\xd6\xa8\xcd\x87\xcd\x95\xc3\x10\xc3\x52\x95\xe3\xe6\xb6\x68\x55\x61\xde\x76\xa6\xdc\xf6\xec\x42\x48\x06\x4c\x74\xa5\xd2\xb1\xa7\xed\x70\x72\x6d\x76\x8b\xa5\x66\xbf\xb1\x1a\x36\x7a\xdf\xd6\x27\x6a\x99\xaa\x13\x1b\x65\x37\x3d\xe4\xd9\xc1\xae\x8f\x8e\x05\xb6\x05\x3e\xcf\x12\xed\xf8\x4e\xb9\xc2\x42\x41\x64\x0b\x07\x74\x97\x9c\x61\x41\x57\x59\xc3\x01\xdf\x25\x77\x58\xf0\x21\x7b\x38\x80\xbb\xe4\x10\x0b\xf8\x3e\x8b\x38\xd0\x70\xc9\x25\x16\x1a\x59\x36\x79\x25\x02\x79\xe3\x3b\xb0\x3d\x01\x7b\x93\x68\xd6\xea\x63\x82\xd8\xc0\xa7\x09\x59\x66\xbd\x39\x7b\x18\x24\x04\xf2\x40\x6a\x1c\xd6\x56\xbc\xf9\x5c\xe7\xa2\xfe\x2c\xc6\x41\x13\x87\x84\xc6\x3c\x22\x5d\x35\x9d\x3a\x1b\x32\xbb\x32\xf3\x3a\x3d\xb9\x15\xf9\xb5\x1a\x74\x2b\xf8\x6b\x74\xeb\x56\xe0\xd7\x69\xdd\xad\xd0\xaf\xd0\xc7\x5b\x71\x5f\xaf\xa9\xb7\xc2\x1f\xdc\xe1\x4f\x87\xd9\x5b\x77\xd3\xa1\x7a\x85\xf1\x68\x2a\xde\xbb\xcb\xde\x00\x14\xc7\x9c\xf2\x75\x27\xf1\xb6\x53\xf6\x3a\x59\x6f\xff\x86\xde\x34\x7b\x53\x23\x9b\xb2\x7f\x77\xa3\x34\x47\xcd\x1b\x59\xdf\x87\x04\x9a\xa3\x12\xda\x50\x2d\xce\x5e\x07\xd4\x19\xd8\xbf\xaf\x90\xbf\x97\x66\x50\x19\xcf\xe5\xbb\x95\xe6\x5b\x96\x30\x52\x99\xfa\xfc\x8c\xde\x51\x8c\x26\x33\xe4\xed\x76\x47\x55\x94\x54\x85\x9f\x9c\x6c\x16\x88\x35\x5a\x39\x73\xe6\x5d\x05\xff\x40\xf9\x1a\xbd\xd3\x1a\x82\x6b\xb0\x04\x17\x44\x71\x18\xfe\xa6\xf5\x0a\xc0\xce\x6e\x67\x05\x9b\xc6\xf3\x69\x1a\xe3\x82\x21\xf1\xd2\x60\x0f\x6e\x81\x26\xa2\x60\xfe\x2b\xe3\xe0\xbd\x42\x62\x2b\x35\x4f\x8e\xef\x76\xfa\x11\x8e\x30\xbb\x5c\x0f\x5f\x00\x1b\x3e\x62\xbb\x28\xf5\x03\x25\xd3\x94\x93\x95\x45\x51\x7b\xb5\xd0\x15\x0a\x38\x3a\xb1\xb3\xaa\xd4\xd3\xcb\xb6\x72\xef\x3d\x3a\xab\xd1\x88\x4e\x5e\x06\xec\x7c\xd9\x3c\x77\x85\x09\xca\x75\x54\xa7\x1b\x8d\xa0\xd8\x28\x85\x56\x6a\x6d\xab\x04\x21\x91\x0f\x4a\x75\x13\x68\xef\xfa\x5d\x65\x2a\xad\x9c\x97\x02\x88\xb3\x64\xa5\xf5\x6f\x25\x1c\xc4\xcb\xae\x52\x89\x25\x73\x11\x67\x9d\xe5\x10\x2b\xde\x4a\x00\x95\x4b\xba\xca\x90\xad\x9a\x67\x99\xc8\x59\x92\x6c\xdd\x5b\x09\x23\x32\x6e\x57\x51\xe4\x9a\xb9\xcc\xd5\xce\x62\xc8\x35\x6f\x25\x44\x5e\x93\x74\x15\xa4\x58\x37\x2f\xaa\x1a\x67\x81\x8a\xb5\x6f\x25\x54\x56\xc2\x75\x95\x29\x5f\x36\xcf\x4b\x40\x67\x89\xf2\x95\x9d\x05\xaa\x49\x03\xb5\x4b\xcb\x3c\x57\x6b\x93\x86\x54\x50\x2b\x28\x92\xe5\xc8\xac\x97\xb5\x18\x75\x42\xfe\x23\x23\x64\x08\xfb\x6d\xaf\x4d\xcc\xfa\x7d\x73\x18\xed\xd2\xd6\x39\x80\xb8\xf4\xa4\xc3\x08\x67\x4e\x78\x00\xd1\x2c\x0a\x1d\x46\xb6\x08\x61\x07\x10\x16\x81\xfc\x30\xaa\x2a\x05\x1c\x40\xb2\x94\x03\x0f\xa3\x5c\x49\xa2\x07\x30\x90\x97\x17\x87\x51\xdf\x17\x27\xcd\xa4\x1b\x86\xea\xfc\xda\xb2\x04\x42\x85\xaa\x7e\xab\xb7\x8f\xea\x04\xac\x73\xf3\xe7\xe7\x04\x47\x01\x41\xef\xee\x4e\xdf\xdd\x8b\x8a\x57\x3f\x1a\xb7\x97\xbb\xc5\xb2\x7b\x1b\xbb\xb8\xa2\x56\x28\xf1\xbf\x88\xb3\x01\xca\x9f\x76\xbb\xfc\x5f\x25\x1d\x43\x61\xef\x89\xa2\x1f\xc1\xbd\xf6\x70\xe5\x33\xde\xac\xd4\xd2\x5c\xf9\xae\x44\x4b\x44\x9b\xef\x63\xb3\x97\xb7\x1e\x6e\xb1\x57\xae\xae\x88\xe4\xb8\xe0\x46\x1d\x6a\x37\xce\xaf\x19\x9a\x0e\xb1\xcd\x72\xf6\xcd\x62\xbb\xaf\xe1\x66\xbf\xee\x7f\xd7\x3a\x29\xd5\xf3\xe9\x4d\x9b\x9d\xb5\xb2\xe2\xc5\xbf\xb3\x70\x30\xa6\x7a\x56\xd2\x96\x73\xa8\x3f\xeb\x81\xda\x6e\x71\xca\x6f\xe5\xd3\x01\x65\xa7\x5e\x05\xa5\x01\x44\x02\xad\xcf\x2b\xd3\xb3\x67\x16\x3d\xe4\x63\x8e\x07\x9c\x05\x41\x48\x06\x72\xc4\x4e\x6b\x6e\xb9\x09\x3d\xea\x79\x0b\xd5\x92\xac\xf9\xa3\x8c\x16\x46\xe5\xb2\x6d\xd8\x3e\x49\x5c\xe0\x3a\xca\xfb\x52\xb0\x12\xf1\xdd\x1b\x54\x83\x62\x48\x35\x3e\x1d\xd8\x2c\x16\x9b\x52\xe6\xea\x75\x07\x41\xa8\x54\x25\x15\x01\xa1\xf0\x45\x24\xfb\x69\x39\xf4\x1b\x6c\x19\xb1\x45\xe5\xa8\xb8\x89\x06\xa8\xd2\x6d\xaf\x30\x5a\xe1\x01\x79\x84\x5f\x37\x58\xec\xe6\x01\x4f\x28\xa8\x49\x98\x1b\xc3\xb7\x81\x3a\x61\x9c\xf5\x78\xb2\x25\xbd\xbc\x9d\x76\x17\xb7\xd9\xcb\xf5\xab\xb0\x91\xa7\x99\xc7\xd1\x34\x92\xe4\x36\xcc\x85\xd3\xa2\x72\x37\x0d\x97\xed\xac\x3d\x79\x07\xc5\xe6\x81\xac\x3e\x10\x37\x42\x63\x2b\x72\xe1\x68\xe2\x79\xaa\xf0\xad\x52\xb0\xb7\x46\xb3\x56\x3a\x6a\x47\x14\x89\x05\xc0\x7a\xd6\x2d\xd3\x1d\x59\xc5\x67\xf1\x4e\x40\xba\x4c\x68\xcc\xf3\x5d\xd6\xc9\xde\x05\x1a\xce\x12\x9c\x40\xbc\x15\xff\x2c\x57\x84\x2c\x8e\x93\x80\xf0\x59\x6f\x11\xe2\xe8\x0e\x5a\x6a\xb8\xdf\x59\x0b\xd3\x61\x48\xbb\x6c\x57\xd7\x68\xe2\x8e\xdb\xd4\x76\x1c\x3a\xb7\x9d\xcf\xb6\xf4\x7a\x40\x36\xb5\xdf\x5e\x24\x68\xa8\x17\x59\xc5\xcc\xca\xd7\x4a\xe9\x55\x4e\xa6\x53\xb5\x83\xf6\x28\x27\xab\x6d\x24\xe7\x9e\xbc\x37\x1f\xab\xa6\x1c\xa9\x14\x94\xa4\x68\x86\x7c\xb6\xdc\x6e\x08\xd4\x95\xff\xde\x92\xe4\xe9\x0b\x09\x81\x08\x4b\x7e\x0c\xc3\x93\xfe\xef\x46\xba\xfa\xda\x7f\xaf\x3f\xdc\x8f\x52\x16\x12\x2f\x64\xc1\x49\x0e\x0a\x53\x2a\x73\x56\x2c\x41\x27\xf7\x38\x41\x14\xc8\xe5\x93\xbc\x90\x44\x01\x5f\x43\x34\x1d\x7d\x84\x81\xf9\x0c\x9d\xc1\xe7\x60\xa0\xf3\x2b\xae\x7c\xcd\xef\xf4\xab\xc7\xa2\x65\x48\x97\x77\x80\x54\x88\x48\x6c\x6b\xc4\x45\x3c\xe5\x00\x9e\x7a\xcd\xf7\x67\x71\x0e\x2e\x1d\xf9\x96\xa6\xdc\x53\xa8\x27\x7d\xf5\xf4\x5f\x17\x4c\x5c\xbb\xea\xad\xfd\xae\xda\xbd\x3f\xc9\xa6\x83\x51\x32\xd5\x4f\x87\xea\x58\x5c\x9c\x93\x8b\xff\x07\xc0\x7f\x03\x00\x00\xff\xff\xb3\xfc\x2e\xd8\x13\x40\x00\x00") func templatesAnalysisTemplateHtmlBytes() ([]byte, error) { return bindataRead( @@ -83,7 +83,7 @@ func templatesAnalysisTemplateHtml() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/analysis-template.html", size: 16409, mode: os.FileMode(420), modTime: time.Unix(1463760760, 0)} + info := bindataFileInfo{name: "templates/analysis-template.html", size: 16403, mode: os.FileMode(420), modTime: time.Unix(1463761868, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/cmd/clairctl/clair/templates/analysis-template.html b/cmd/clairctl/clair/templates/analysis-template.html index bf9a07d8..15015b21 100644 --- a/cmd/clairctl/clair/templates/analysis-template.html +++ b/cmd/clairctl/clair/templates/analysis-template.html @@ -452,10 +452,11 @@

Image: {{.ImageName}}

+ {{ $ia := .}}
- {{with $vulnerabilitiesCount := .CountAllVulnerabilities}} + {{with $vulnerabilitiesCount := allVulnerabilities $ia}}

Total : {{$vulnerabilitiesCount.Total}} vulnerabilities

@@ -489,7 +490,6 @@
- {{ $ia := .}} {{range $k,$v := vulnerabilities $ia}} {{range $v}}