analyzers

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzedData

type AnalyzedData struct {
	Entity                   githubcollected.Entity
	Namespace                namespace.Namespace
	PolicyName               string
	FullyQualifiedPolicyName string
	Title                    string
	Description              string
	Annotations              *ast.Annotations
	RequiredEnrichers        []string
	RemediationSteps         []string
	Severity                 severity.Severity
	CanonicalLink            string
	ExtraData                interface{}
	Status                   PolicyStatus
}

type Analyzer

type Analyzer interface {
	Analyze(dataChannel <-chan collectors.CollectedData) <-chan AnalyzedData
}

func NewAnalyzer

func NewAnalyzer(ctx context.Context, enginer opa_engine.Enginer, skipper skippers.Skipper) Analyzer

type PolicyStatus

type PolicyStatus = string
const (
	PolicyPassed  PolicyStatus = "PASSED"
	PolicyFailed  PolicyStatus = "FAILED"
	PolicySkipped PolicyStatus = "SKIPPED"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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