report

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LISTMARK = "*"
	COLON    = ":"
	SPACE    = " "
	TAB      = "	"
	NEWLINE  = "\n"
)

Variables

View Source
var AlertLabels = []string{
	"INFO",
	"WARN",
	"FATAL",
	"PASS",
	"SKIP",
	"IGNORE",
}

Functions

This section is empty.

Types

type JsonDetail

type JsonDetail struct {
	Code   string   `json:"code"`
	Title  string   `json:"title"`
	Level  string   `json:"level"`
	Alerts []string `json:"alerts"`
}

type JsonOutputFormat

type JsonOutputFormat struct {
	Summary JsonSummary   `json:"summary"`
	Details []*JsonDetail `json:"details"`
}

type JsonSummary

type JsonSummary struct {
	Fatal int `json:"fatal"`
	Warn  int `json:"warn"`
	Info  int `json:"info"`
	Pass  int `json:"pass"`
}

type JsonWriter

type JsonWriter struct {
	Output    io.Writer
	IgnoreMap map[string]struct{}
}

func (JsonWriter) Write

func (jw JsonWriter) Write(assessments []*types.Assessment) (bool, error)

type ListWriter

type ListWriter struct {
	Output    io.Writer
	IgnoreMap map[string]struct{}
}

func (ListWriter) Write

func (lw ListWriter) Write(assessments []*types.Assessment) (bool, error)

type Writer

type Writer interface {
	Write(assessments []*types.Assessment) (bool, error)
}

Jump to

Keyboard shortcuts

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