layout

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 4 Imported by: 0

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 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