reporter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvReportingConfig added in v1.0.0

type CsvReportingConfig struct {
	Path string
}

type JsonReportingConfig added in v1.2.0

type JsonReportingConfig struct {
	Path string
}

type MarkdownReportingConfig

type MarkdownReportingConfig struct {
	Path string
}

type Reporter

type Reporter interface {
	Name() string

	// Feed collected data to reporting module
	AddManifest(manifest *models.PackageManifest)
	AddAnalyzerEvent(event *analyzer.AnalyzerEvent)
	AddPolicyEvent(event *policy.PolicyEvent)

	// Inform reporting module to finalise (e.g. write report to file)
	Finish() error
}

func NewConsoleReporter

func NewConsoleReporter() (Reporter, error)

func NewCsvReporter added in v1.0.0

func NewCsvReporter(config CsvReportingConfig) (Reporter, error)

func NewJsonReportGenerator added in v1.2.0

func NewJsonReportGenerator(config JsonReportingConfig) (Reporter, error)

func NewMarkdownReportGenerator

func NewMarkdownReportGenerator(config MarkdownReportingConfig) (Reporter, error)

func NewSummaryReporter

func NewSummaryReporter(config SummaryReporterConfig) (Reporter, error)

func NewSyncReporter added in v1.1.0

func NewSyncReporter(config SyncReporterConfig) (Reporter, error)

type SummaryReporterConfig added in v1.3.0

type SummaryReporterConfig struct {
	MaxAdvice int
}

type SyncReporterConfig added in v1.1.0

type SyncReporterConfig struct {
	// Required
	ProjectName  string
	StreamName   string
	TriggerEvent string

	// Optional or auto-discovered from environment
	ProjectSource string
	GitRef        string
	GitRefName    string
	GitRefType    string
	GitSha        string

	// Performance
	WorkerCount int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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