Documentation ¶
Index ¶
Constants ¶
View Source
const ( ET_FilterExpressionMatched = AnalyzerEventType("ev_pkg_filter_match") ET_AnalyzerFailOnError = AnalyzerEventType("ev_fail_on_error") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer interface { Name() string Analyze(manifest *models.PackageManifest, handler AnalyzerEventHandler) error Finish() error }
Contract for an analyzer
func NewCelFilterAnalyzer ¶
func NewExceptionsGenerator ¶
func NewExceptionsGenerator(config ExceptionsGeneratorConfig) (Analyzer, error)
func NewJsonDumperAnalyzer ¶
type AnalyzerEvent ¶
type AnalyzerEvent struct { // Analyzer generating this event Source string // Type of the event Type AnalyzerEventType // Message / Error Message interface{} Err error // Entities on which event was generated Manifest *models.PackageManifest Package *models.Package }
func (*AnalyzerEvent) IsFailOnError ¶
func (ev *AnalyzerEvent) IsFailOnError() bool
func (*AnalyzerEvent) IsFilterMatch ¶
func (ev *AnalyzerEvent) IsFilterMatch() bool
type AnalyzerEventHandler ¶
type AnalyzerEventHandler func(event *AnalyzerEvent) error
Callback to receive events from analyzer
type AnalyzerEventType ¶
type AnalyzerEventType string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.