Documentation
¶
Overview ¶
Package gotable transforms evaluation results to a go table object, from there it can be rendererd to html, markup, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableBuilder ¶
type TableBuilder struct {
Decorator TableDecorator
}
func (*TableBuilder) ResultSetTable ¶
RenderResult renders a single evaluation result
func (*TableBuilder) ResultsTable ¶
RenderResult renders a single evaluation result
type TableDecorator ¶
type TableDecorator interface {
AmpelBanner(string) string
SubjectToString(attestation.Subject, []*papi.ChainedSubject) string
AssessmentToString(*papi.Assessment) string
ErrorToString(*papi.Error) string
StatusToDot(string) string
ControlsToString(result *papi.Result, checkID, def string) string
TenetsToString(result *papi.Result) string
Bold(string) string
}
TableDecorator is an object that renders the format specific decoration of the tabular reports.
Click to show internal directories.
Click to hide internal directories.