Documentation
¶
Index ¶
- type Decorator
- func (d *Decorator) AmpelBanner(legend string) string
- func (d *Decorator) AssessmentToString(a *papi.Assessment) string
- func (d *Decorator) Bold(txt string) string
- func (d *Decorator) ControlsToString(result *papi.Result, checkID, def string) string
- func (d *Decorator) ErrorToString(err *papi.Error) string
- func (d *Decorator) StatusToDot(status string) string
- func (d *Decorator) SubjectToString(subject attestation.Subject, chain []*papi.ChainedSubject) string
- func (d *Decorator) TenetsToString(result *papi.Result) string
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decorator ¶
type Decorator struct{}
func (*Decorator) AmpelBanner ¶
func (*Decorator) AssessmentToString ¶
func (d *Decorator) AssessmentToString(a *papi.Assessment) string
func (*Decorator) ControlsToString ¶
func (*Decorator) StatusToDot ¶
func (*Decorator) SubjectToString ¶
func (d *Decorator) SubjectToString(subject attestation.Subject, chain []*papi.ChainedSubject) string
type Driver ¶
type Driver struct {
Decorator *Decorator
}
Driver renders Ampel results as ANSI-styled terminal tables using github.com/carabiner-dev/termtable. The tables auto-size to the attached terminal and clip overwide output to the screen.
func (*Driver) RenderResult ¶
RenderResult writes the 3-column single-result table to w.
func (*Driver) RenderResultGroup ¶ added in v1.1.0
RenderResultGroup writes the 4-column policy-group table to w.
Click to show internal directories.
Click to hide internal directories.