blob: 93ebecc2494808b68753df9c9a6651413ddb9de3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{{define "manifest"}}{{template "header" .}}
<h1>Manifest in repository <a href="{{repoURL .Repository.Name}}">{{.Repository.Name}}</a> in <a href="/">registry</a></h1>
<h2>Tags referencing manifest</h2>
<table>
<thead><tr><th scope="col">Tag</th><th scope="col">Last updated</th></tr></thead>
<tbody>
{{range .Manifest.Tags}}
<tr>
<td>{{if eq .ManifestDigest $.Manifest.Digest}}{{.Name}}{{else}}<a href="{{manifestURL $.Repository.Name .ManifestDigest .Name}}">{{.Name}}</a>{{end}}</td>
<td title="{{timestamp .UpdatedAt}}">{{age .UpdatedAt .Age}}</td>
</tr>
{{else}}
<tr><td colspan="2">No tags reference this manifest.</td></tr>
{{end}}
</tbody>
</table>
<br>
<h2>Pull address</h2>
<div><pre class="literal" style="display: inline-block">{{pull .RegistryHost .Repository.Name .SelectedTag .Manifest.Digest}}</pre></div>
<br>
{{if eq .Manifest.Kind "index"}}
<h2>Manifests in list</h2>
<table>
<thead><tr><th scope="col" colspan="2">OS/Arch</th><th scope="col">Size</th><th scope="col">Pull address</th></tr></thead>
<tbody>
{{range .Manifest.Platforms}}
<tr>
<td>{{.Platform}}</td><td>{{.Variant}}</td>
<td style="text-align: right" title="{{.SizeBytes}} bytes">{{size .SizeBytes}}</td>
<td>{{pull $.RegistryHost $.Repository.Name $.SelectedTag ""}}@<a class="monospace" href="{{manifestURL $.Repository.Name .Digest $.SelectedTag}}">{{.Digest}}</a></td>
</tr>
{{else}}
<tr><td colspan="4">No platform manifests found.</td></tr>
{{end}}
</tbody>
</table>
{{else}}
<h2>Layers in manifest</h2>
<table>
<thead><tr><th scope="col">Digest</th><th scope="col">Size</th></tr></thead>
<tbody>
{{range .Manifest.Layers}}
<tr><td class="monospace">{{.Digest}}</td><td style="text-align: right" title="{{.SizeBytes}} bytes">{{size .SizeBytes}}</td></tr>
{{else}}
<tr><td colspan="2">No layers found.</td></tr>
{{end}}
</tbody>
<tfoot><tr><td><b>Total size</b></td><td style="text-align: right" title="{{.Manifest.TotalSizeBytes}} bytes"><b>{{size .Manifest.TotalSizeBytes}}</b></td></tr></tfoot>
</table>
{{end}}
{{template "footer" .}}{{end}}
|