render

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortRisk added in v0.10.0

func ShortRisk(s string) string

func Statistics added in v0.10.0

func Statistics(r *bincapz.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 (r JSON) File(_ context.Context, _ bincapz.FileReport) error

func (JSON) Full

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

type KeyedBehavior

type KeyedBehavior struct {
	Key      string
	Behavior bincapz.Behavior
}

type Markdown

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

func NewMarkdown

func NewMarkdown(w io.Writer) Markdown

func (Markdown) File

func (r Markdown) File(ctx context.Context, fr bincapz.FileReport) error

func (Markdown) Full

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

type Renderer

type Renderer interface {
	File(context.Context, bincapz.FileReport) error
	Full(context.Context, bincapz.Report) error
}

Renderer is a common interface for Renderers.

func New

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

New returns a new Renderer.

type Simple

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

func NewSimple

func NewSimple(w io.Writer) Simple

func (Simple) File

func (r Simple) File(_ context.Context, fr bincapz.FileReport) error

func (Simple) Full

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

type Terminal

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

func NewTerminal

func NewTerminal(w io.Writer) Terminal

func (Terminal) File

func (r Terminal) File(ctx context.Context, fr bincapz.FileReport) error

func (Terminal) Full

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

type YAML

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

func NewYAML

func NewYAML(w io.Writer) YAML

func (YAML) File

func (r YAML) File(_ context.Context, _ bincapz.FileReport) error

func (YAML) Full

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

Jump to

Keyboard shortcuts

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