html

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator struct{}

Decorator implements the tabnle decorator interface to style the output

func (*Decorator) AmpelBanner

func (d *Decorator) AmpelBanner(legend string) string

func (*Decorator) AssessmentToString

func (d *Decorator) AssessmentToString(a *papi.Assessment) string

func (*Decorator) Bold

func (d *Decorator) Bold(txt string) string

func (*Decorator) ControlsToString

func (d *Decorator) ControlsToString(result *papi.Result, checkID, def string) string

func (*Decorator) ErrorToString

func (d *Decorator) ErrorToString(err *papi.Error) string

func (*Decorator) StatusToDot

func (d *Decorator) StatusToDot(status string) string

func (*Decorator) SubjectToString

func (d *Decorator) SubjectToString(subject attestation.Subject, chain []*papi.ChainedSubject) string

func (*Decorator) TenetsToString

func (d *Decorator) TenetsToString(result *papi.Result) string

type Driver

type Driver struct {
	TableWriter gotable.TableBuilder
}

func New

func New() *Driver

func (*Driver) RenderResult

func (d *Driver) RenderResult(w io.Writer, result *papi.Result) error

func (*Driver) RenderResultSet

func (d *Driver) RenderResultSet(w io.Writer, rset *papi.ResultSet) error

RenderResultSet takes a resultset

Jump to

Keyboard shortcuts

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