enricher

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultEnrichers = []string{
		enrichers.EntityId,
		enrichers.EntityName,
	}
)

Functions

This section is empty.

Types

type EnrichedData

type EnrichedData struct {
	Entity                   githubcollected.Entity
	Namespace                namespace.Namespace
	PolicyName               string
	FullyQualifiedPolicyName string
	Annotations              *ast.Annotations
	Title                    string
	Description              string
	Enrichers                map[string]enrichers.Enrichment
	Threat                   []string
	RemediationSteps         []string
	Severity                 severity.Severity
	CanonicalLink            string
	Status                   analyzers.PolicyStatus
}

type EnricherManager

type EnricherManager interface {
	Enrich(ctx context.Context, analyzedDataChannel <-chan analyzers.AnalyzedData) <-chan EnrichedData
	Parse(name string, data interface{}) (enrichers.Enrichment, error)
}

func NewEnricherManager

func NewEnricherManager() EnricherManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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