layout

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CriticalColor

func CriticalColor() string

func GenTestDescription

func GenTestDescription(provider LayoutProvider, raw string) string

func GenTicketDescription

func GenTicketDescription(provider LayoutProvider, scanInfo, prevScan *data.ScanImageInfo, serverUrl, image_url_part string) string

func HighColor

func HighColor() string

func LowColor

func LowColor() string

func MediumColor

func MediumColor() string

func NegligibleColor

func NegligibleColor() string

func RenderAssurances

func RenderAssurances(provider LayoutProvider, assuranceResults data.ImageAssuranceResults) string

func RenderMalware

func RenderMalware(malware []data.MalwareData, provider LayoutProvider, builder *bytes.Buffer)

func RenderSensitiveData

func RenderSensitiveData(sensitive []data.SensitiveData, provider LayoutProvider, builder *bytes.Buffer)

func RenderVulnerabilities

func RenderVulnerabilities(resources []data.InfoResources, provider LayoutProvider, builder *bytes.Buffer)

func VulnerabilitiesTable

func VulnerabilitiesTable(provider LayoutProvider, rows [2][]string) string

Types

type LayoutProvider

type LayoutProvider interface {
	TitleH1(title string) string
	TitleH2(title string) string
	TitleH3(title string) string
	ColourText(text, color string) string
	Table(rows [][]string) string
	P(p string) string
	A(url, title string) string
}

Jump to

Keyboard shortcuts

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