Files
chart/viewer/model.go
2026-04-01 16:28:42 +03:00

49 lines
933 B
Go

package viewer
type pageData struct {
Title string
HasSnapshot bool
Error string
NoticeTitle string
NoticeBody string
DownloadArchiveURL string
DownloadArchiveLabel string
Meta []fieldRow
Sections []sectionView
}
type sectionView struct {
ID string
Title string
Kind string
Rows []fieldRow
Columns []string
Items []tableRow
Groups []tableGroupView
SeverityOptions []severityOption
}
type fieldRow struct {
Key string
Value string
}
type tableRow struct {
Status string
Severity string
Cells map[string]string
RawCells map[string]any
}
type tableGroupView struct {
Title string
Columns []string
Items []tableRow
SeverityOptions []severityOption
}
type severityOption struct {
Value string
Label string
}