formatter

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindingsFormatter

type FindingsFormatter interface {
	Init(w io.Writer) error
	Start() error
	Print(finding *checks.CheckFinding) error
	End() error
}

func Get

func Get(format string) (FindingsFormatter, error)

type JsonFindingsFormatter

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

func (*JsonFindingsFormatter) End

func (j *JsonFindingsFormatter) End() error

func (*JsonFindingsFormatter) Init

func (j *JsonFindingsFormatter) Init(w io.Writer) error

func (*JsonFindingsFormatter) Print

func (*JsonFindingsFormatter) Start

func (j *JsonFindingsFormatter) Start() error

type TableFindingsFormatter

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

func (*TableFindingsFormatter) End

func (t *TableFindingsFormatter) End() error

func (*TableFindingsFormatter) Init

func (*TableFindingsFormatter) Print

func (t *TableFindingsFormatter) Print(finding *checks.CheckFinding) error

func (*TableFindingsFormatter) Start

func (t *TableFindingsFormatter) Start() error

type TextFindingsFormatter

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

func (*TextFindingsFormatter) End

func (t *TextFindingsFormatter) End() error

func (*TextFindingsFormatter) Init

func (t *TextFindingsFormatter) Init(w io.Writer) error

func (*TextFindingsFormatter) Print

func (t *TextFindingsFormatter) Print(finding *checks.CheckFinding) error

func (*TextFindingsFormatter) Start

func (t *TextFindingsFormatter) Start() error

Jump to

Keyboard shortcuts

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