analysis

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Page

func Page(p view.Page, d Data) templ.Component

Page renders the Analysis page: the summary line, the findings, the state of every rule and a short explanation. An h2 heads each part.

Types

type Data

type Data struct {
	Messages []view.Message
	// Summary is the one line of counts: findings by severity and the rules
	// that cannot be assessed.
	Summary string
	// Filter is the title of the rule the findings are limited to; empty
	// when all findings are shown. ShowAll links back to every finding.
	Filter, ShowAll string
	// Truncated says some rule has more findings than it lists.
	Truncated bool
	Findings  admin.TableData
	Rules     admin.TableData
	// How is the "How this works" paragraph.
	How []string
}

Data is the content of the Analysis page. The tables are built by the handler from the findings and the rules; every text in them (subjects come from certificates, agents and domains) is written by templ's escaping.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL