Documentation ¶
Index ¶
- type CsvReportingConfig
- type JsonReportingConfig
- type MarkdownReportingConfig
- type MarkdownSummaryReporterConfig
- type Reporter
- func NewConsoleReporter() (Reporter, error)
- func NewCsvReporter(config CsvReportingConfig) (Reporter, error)
- func NewDotGraphReporter(directory string) (Reporter, error)
- func NewJsonReportGenerator(config JsonReportingConfig) (Reporter, error)
- func NewMarkdownReportGenerator(config MarkdownReportingConfig) (Reporter, error)
- func NewMarkdownSummaryReporter(config MarkdownSummaryReporterConfig) (Reporter, error)
- func NewSarifReporter(config SarifReporterConfig) (Reporter, error)
- func NewSummaryReporter(config SummaryReporterConfig) (Reporter, error)
- func NewSyncReporter(config SyncReporterConfig) (Reporter, error)
- type SarifReporterConfig
- type SarifToolMetadata
- type SummaryReporterConfig
- type SyncReporterConfig
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 MarkdownSummaryReporterConfig ¶ added in v1.5.7
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 NewCsvReporter ¶ added in v1.0.0
func NewCsvReporter(config CsvReportingConfig) (Reporter, error)
func NewDotGraphReporter ¶ added in v1.5.6
func NewJsonReportGenerator ¶ added in v1.2.0
func NewJsonReportGenerator(config JsonReportingConfig) (Reporter, error)
func NewMarkdownReportGenerator ¶
func NewMarkdownReportGenerator(config MarkdownReportingConfig) (Reporter, error)
func NewMarkdownSummaryReporter ¶ added in v1.5.7
func NewMarkdownSummaryReporter(config MarkdownSummaryReporterConfig) (Reporter, error)
NewMarkdownSummaryReporter creates a new markdown summary reporter. This reporter is suitable for generating markdown reports intended for PR comments.
func NewSarifReporter ¶ added in v1.6.0
func NewSarifReporter(config SarifReporterConfig) (Reporter, error)
func NewSummaryReporter ¶
func NewSummaryReporter(config SummaryReporterConfig) (Reporter, error)
func NewSyncReporter ¶ added in v1.1.0
func NewSyncReporter(config SyncReporterConfig) (Reporter, error)
type SarifReporterConfig ¶ added in v1.6.0
type SarifReporterConfig struct { Tool SarifToolMetadata Path string }
type SarifToolMetadata ¶ added in v1.6.0
type SummaryReporterConfig ¶ added in v1.3.0
type SyncReporterConfig ¶ added in v1.1.0
type SyncReporterConfig struct { // gRPC connection for ControlTower ClientConnection *grpc.ClientConn // Enable multi-project syncing // In this case, a new project is created per package manifest EnableMultiProjectSync bool // Required ProjectName string ProjectVersion string TriggerEvent string // Optional or auto-discovered from environment GitRef string GitRefName string GitRefType string GitSha string // Performance WorkerCount int // Tool details ToolName string ToolVersion string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.