checker: remove CollectedAt from DANEData
The observation timestamp is already managed by the core; there is no need for the checker to record it separately.
This commit is contained in:
parent
16aa0253a3
commit
e75c97b52b
3 changed files with 4 additions and 11 deletions
|
|
@ -47,7 +47,6 @@ func (p *daneProvider) GetHTMLReport(ctx sdk.ReportContext) (string, error) {
|
|||
}
|
||||
|
||||
view := reportView{
|
||||
CollectedAt: data.CollectedAt.Format("2006-01-02 15:04 MST"),
|
||||
TargetCount: len(data.Targets),
|
||||
Diagnoses: diagnose(data, probes),
|
||||
Rows: rows,
|
||||
|
|
@ -65,7 +64,6 @@ func (p *daneProvider) GetHTMLReport(ctx sdk.ReportContext) (string, error) {
|
|||
// the per-row status label/class and leaf string keeps the template free of
|
||||
// branching beyond simple range/if.
|
||||
type reportView struct {
|
||||
CollectedAt string
|
||||
TargetCount int
|
||||
Diagnoses []diagnosis
|
||||
Rows []reportRow
|
||||
|
|
@ -246,7 +244,7 @@ var reportTemplate = template.Must(template.New("dane").Parse(`<!DOCTYPE html>
|
|||
</head>
|
||||
<body><main>
|
||||
<h1>DANE / TLSA</h1>
|
||||
<p class="meta">Collected {{.CollectedAt}} · {{.TargetCount}} endpoint(s).</p>
|
||||
<p class="meta">{{.TargetCount}} endpoint(s).</p>
|
||||
{{with .Diagnoses}}<section class="diagnosis">
|
||||
<h2>Action required</h2>
|
||||
{{range .}}<article class="finding sev-{{.Severity}}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue