render

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(kind string, w io.Writer) (malcontent.Renderer, error)

New returns a new Renderer.

func ShortRisk

func ShortRisk(s string) string

func Statistics

func Statistics(r *malcontent.Report) error

Types

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func NewJSON

func NewJSON(w io.Writer) JSON

func (JSON) File

func (JSON) Full

func (r JSON) Full(_ context.Context, rep *malcontent.Report) error

type KeyedBehavior

type KeyedBehavior struct {
	Key      string
	Behavior *malcontent.Behavior
}

type Markdown

type Markdown struct {
	// contains filtered or unexported fields
}

func NewMarkdown

func NewMarkdown(w io.Writer) Markdown

func (Markdown) File

func (Markdown) Full

func (r Markdown) Full(ctx context.Context, rep *malcontent.Report) error

type Simple

type Simple struct {
	// contains filtered or unexported fields
}

func NewSimple

func NewSimple(w io.Writer) Simple

func (Simple) File

func (Simple) Full

func (r Simple) Full(_ context.Context, rep *malcontent.Report) error

type Terminal

type Terminal struct {
	// contains filtered or unexported fields
}

func NewTerminal

func NewTerminal(w io.Writer) Terminal

func (Terminal) File

func (Terminal) Full

func (r Terminal) Full(ctx context.Context, rep *malcontent.Report) error

type TerminalBrief

type TerminalBrief struct {
	// contains filtered or unexported fields
}

func NewTerminalBrief

func NewTerminalBrief(w io.Writer) TerminalBrief

func (TerminalBrief) File

func (TerminalBrief) Full

type YAML

type YAML struct {
	// contains filtered or unexported fields
}

func NewYAML

func NewYAML(w io.Writer) YAML

func (YAML) File

func (YAML) Full

func (r YAML) Full(_ context.Context, rep *malcontent.Report) error

Jump to

Keyboard shortcuts

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