templates

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 5 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 ConfigAuditSummary

type ConfigAuditSummary struct {
	PodPass       int
	PodFail       int
	ContainerPass int
	ContainerFail int
}

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      vulnerabilities.WorkloadVulnerabilities
	ConfigAuditReport v1alpha1.ConfigAuditReport
	Workload          kube.Object
}

func (*ReportPage) Body

func (p *ReportPage) Body() string

func (*ReportPage) GetConfigAuditSummary

func (p *ReportPage) GetConfigAuditSummary() ConfigAuditSummary

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