layout

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 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 GenTicketDescription

func GenTicketDescription(provider LayoutProvider, scanInfo, prevScan *data.ScanImageInfo, link 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