templates

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageTemplate

func PageTemplate(p Page) string

func StreamPageTemplate

func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)

func WritePageTemplate

func WritePageTemplate(qq422016 qtio422016.Writer, p Page)

Types

type Page

type Page interface {
	Title() string

	StreamTitle(qw422016 *qt422016.Writer)

	WriteTitle(qq422016 qtio422016.Writer)

	Body() string

	StreamBody(qw422016 *qt422016.Writer)

	WriteBody(qq422016 qtio422016.Writer)
}

type ReportPage

type ReportPage struct {
	VulnsReports      map[string]v1alpha1.VulnerabilityScanResult
	ConfigAuditReport *v1alpha1.ConfigAuditReport
	Workload          kube.Object
}

func (*ReportPage) Body

func (p *ReportPage) Body() string

func (*ReportPage) GetMergedVulnsSummary

func (p *ReportPage) GetMergedVulnsSummary() v1alpha1.VulnerabilitySummary

func (*ReportPage) StreamBody

func (p *ReportPage) StreamBody(qw422016 *qt422016.Writer)

func (*ReportPage) StreamTitle

func (p *ReportPage) StreamTitle(qw422016 *qt422016.Writer)

func (*ReportPage) Title

func (p *ReportPage) Title() string

func (*ReportPage) WriteBody

func (p *ReportPage) WriteBody(qq422016 qtio422016.Writer)

func (*ReportPage) WriteTitle

func (p *ReportPage) WriteTitle(qq422016 qtio422016.Writer)

Jump to

Keyboard shortcuts

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