update vendor
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
19a32db84d
commit
94d1cfbfbf
10501 changed files with 2307943 additions and 29279 deletions
54
vendor/github.com/genuinetools/reg/server/templates/repositories.html
generated
vendored
Normal file
54
vendor/github.com/genuinetools/reg/server/templates/repositories.html
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
{{define "repositories"}}
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="/" >
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{{ .RegistryDomain }}</title>
|
||||
<link rel="icon" type="image/ico" href="/static/favicon.ico">
|
||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ .RegistryDomain }}</h1>
|
||||
<form>
|
||||
<input name="filter" type="search"><a class="clear">clear</a>
|
||||
</form>
|
||||
|
||||
<div class="wrapper">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Repository Name</th>
|
||||
<th>Pull Command</th>
|
||||
</tr>
|
||||
{{ range $key, $value := .Repositories }}
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<a href="/repo/{{ $value.Name | urlquery }}/tags">
|
||||
{{ $value.Name }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td align="right" nowrap>
|
||||
<a href="/repo/{{ $value.Name | urlquery }}/tags">
|
||||
<code>docker pull {{ $value.URI }}</code>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
|
||||
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
|
||||
<p>Last Updated: {{ .LastUpdated }}</p>
|
||||
<p>Update Interval: {{ .UpdateInterval }}</p>
|
||||
</div><!--/.footer-->
|
||||
<script src="/static/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
74
vendor/github.com/genuinetools/reg/server/templates/tags.html
generated
vendored
Normal file
74
vendor/github.com/genuinetools/reg/server/templates/tags.html
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
{{define "tags"}}
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="/" >
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{{ .RegistryDomain }}/{{ .Name }}</title>
|
||||
<link rel="icon" type="image/ico" href="/static/favicon.ico">
|
||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ .RegistryDomain }}/{{ .Name }}</h1>
|
||||
<div class="wrapper">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Tag</th>
|
||||
<th>Created</th>
|
||||
{{if .HasVulns}}<th>Vulnerabilities</th>{{end}}
|
||||
</tr>
|
||||
{{ range $key, $value := .Repositories }}
|
||||
<tr>
|
||||
<td valign="left" nowrap>
|
||||
{{if $.HasVulns}}<a href="/repo/{{ $value.Name | urlquery }}/tag/{{ $value.Tag }}/vulns">{{end}}
|
||||
{{ $value.Name }}
|
||||
{{if $.HasVulns}}</a>{{end}}
|
||||
</td>
|
||||
<td align="right" nowrap>
|
||||
{{if $.HasVulns}}<a href="/repo/{{ $value.Name | urlquery }}/tag/{{ $value.Tag }}/vulns">{{end}}
|
||||
{{ $value.Tag }}
|
||||
{{if $.HasVulns}}</a>{{end}}
|
||||
</td>
|
||||
<td align="right" nowrap>
|
||||
{{ $value.Created.Format "02 Jan, 2006 15:04:05 UTC" }}
|
||||
</td>
|
||||
{{if $.HasVulns}}
|
||||
<td align="right" nowrap>
|
||||
<a href="/repo/{{ $value.Name | urlquery }}/tag/{{ $value.Tag }}/vulns" id="{{ $value.Name }}:{{ $value.Tag }}">
|
||||
<div class="signal"></div>
|
||||
</a>
|
||||
</td>
|
||||
{{end}}
|
||||
</tr>
|
||||
{{ end }}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
|
||||
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
|
||||
<p>Last Updated: {{ .LastUpdated }}</p>
|
||||
</div><!--/.footer-->
|
||||
<script src="/static/js/scripts.js"></script>
|
||||
{{if .HasVulns}}
|
||||
<script type="text/javascript">
|
||||
var ajaxCalls = [
|
||||
{{ range $key, $value := .Repositories }}
|
||||
'/repo/{{ $value.Name | urlquery }}/tag/{{ $value.Tag }}/vulns.json',
|
||||
{{ end }}
|
||||
];
|
||||
window.onload = function() {
|
||||
Array.prototype.forEach.call(ajaxCalls, function(url, index){
|
||||
loadVulnerabilityCount(url);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
{{end}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
73
vendor/github.com/genuinetools/reg/server/templates/vulns.html
generated
vendored
Normal file
73
vendor/github.com/genuinetools/reg/server/templates/vulns.html
generated
vendored
Normal file
|
@ -0,0 +1,73 @@
|
|||
{{define "vulns"}}
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<base href="/" >
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report</title>
|
||||
<link rel="icon" type="image/ico" href="/static/favicon.ico">
|
||||
<link rel="stylesheet" href="/static/css/bootstrap.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="/">{{ .RegistryURL }}</a></li>
|
||||
<li class="active">{{ .Repo }}:{{ .Tag }}</li>
|
||||
</ol>
|
||||
|
||||
<div class="page-header">
|
||||
<h1>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} <small>Vulnerability Report</small></h1>
|
||||
</div>
|
||||
<p class="text-right">Generated on: {{.Date}}</p>
|
||||
|
||||
{{if gt .BadVulns 5}}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{{.BadVulns}} High, Critical, and/or Defcon1 vulnerabilities found
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<h2>Summary</h2>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
<span class="badge">{{ len .Vulns }}</span>
|
||||
<b>Total</b>
|
||||
</li>
|
||||
{{range $key, $value := .VulnsBySeverity}}
|
||||
<li class="list-group-item">
|
||||
<span class="label label-{{color $key}} pull-right">{{ len $value }}</span>
|
||||
{{ $key }}
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
|
||||
<h2>Details</h2>
|
||||
{{range $vulns := .VulnsBySeverity}}
|
||||
{{range $value := $vulns}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{$value.Name}}
|
||||
<span class="label label-{{color $value.Severity}} pull-right">{{$value.Severity}}</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{$value.Description}}
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<a href="{{$value.Link}}" target="_blank">{{$value.Link}}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<footer class="text-center">
|
||||
<p>Made with <code><3</code> by <a href="https://github.com/jessfraz">@jessfraz</a></p>
|
||||
<p>Checkout the source code at: <a href="https://github.com/genuinetools/reg">github.com/genuinetools/reg</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue