report

package
v0.3.0-68 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report interface {
	ID() string
	Run() Result
}

Report contains an array of all sections and their reports

func NewDefaultReport

func NewDefaultReport(
	id string,
	rawDataDir string,
) (Report, error)

NewDefaultReport returns a report containing the standard inspection checks

func NewReport

func NewReport(
	id string,
	rawDataDir string,
	sections []Section,
) (Report, error)

NewReport instantiates a new Report struct with the expected fields (e.g. ID)

type Result

type Result struct {
	Version  string          `json:"version"`
	Sections []ResultSection `json:"sections"`
}

Result contains each sections check result

type ResultSection

type ResultSection struct {
	Title   string         `json:"title"`
	Results []check.Result `json:"results"`
}

ResultSection is the individual check and its result

type Section

type Section struct {
	Title  string        `json:"title"`
	Checks []check.Check `json:"checks"`
}

Section is the category of check

Jump to

Keyboard shortcuts

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