render

package
v0.30.9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(v interface{}) error
}

type HumanEncoder

type HumanEncoder struct {
	UI cli.Ui
}

func NewHumanEncoder

func NewHumanEncoder(w io.Writer, colored, force bool) *HumanEncoder

func (*HumanEncoder) Encode

func (e *HumanEncoder) Encode(v interface{}) error

type Renderer

type Renderer struct {
	W      io.Writer
	Format string
}

func New

func New(w io.Writer, format string) *Renderer

func (*Renderer) RenderBundles added in v0.25.0

func (r *Renderer) RenderBundles(ctx context.Context, bundles map[string][]collecttypes.Result, quiet bool) error

func (*Renderer) RenderResults

func (r *Renderer) RenderResults(ctx context.Context, results []api.Result) error

Jump to

Keyboard shortcuts

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