vulnerabilitycorrelation

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageSize = 100
	MaxPageSize     = 500
	MaxCursorBytes  = 8 << 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPEKey

type CPEKey struct {
	Part    string
	Vendor  string
	Product string
}

type PackageKey

type PackageKey struct {
	Ecosystem string
	Package   string
}

type ReconcileRequest

type ReconcileRequest struct {
	TenantID            shared.ID
	EngagementID        shared.ID
	AdvisoryID          string
	Revision            int64
	Cursor              []byte
	Limit               int
	ReconciliationRunID shared.ID
	SkipRetirement      bool
	DryRun              bool
}

type ReconcileResult

type ReconcileResult struct {
	Next        []byte
	Complete    bool
	Added       int64
	Updated     int64
	Unchanged   int64
	Unmatchable int64
	Diffs       []vulnerabilityreconcile.Diff
}

type SBOMReconcileRequest

type SBOMReconcileRequest struct {
	TenantID     shared.ID
	EngagementID shared.ID
	Keys         []PackageKey
	CPEKeys      []CPEKey
	Limit        int
}

type SBOMReconciler

type SBOMReconciler struct {
	// contains filtered or unexported fields
}

func NewSBOMReconciler

func NewSBOMReconciler(inventory ports.ComponentInventoryStore, advisories ports.AdvisoryStore, materializer ports.AdvisoryMaterializer, occurrences ports.VulnerabilityOccurrenceStore) (*SBOMReconciler, error)

func (*SBOMReconciler) Reconcile

func (*SBOMReconciler) SetEvaluator

func (s *SBOMReconciler) SetEvaluator(evaluator occurrenceEvaluator, clock ports.Clock)

func (*SBOMReconciler) SetRollout

func (s *SBOMReconciler) SetRollout(policy *vulnerabilityrollout.Policy)

func (*SBOMReconciler) SetTransactionRunner

func (s *SBOMReconciler) SetTransactionRunner(transactions ports.TenantTransactionRunner)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) ReconcileAdvisory

func (s *Service) ReconcileAdvisory(ctx context.Context, request ReconcileRequest) (ReconcileResult, error)

func (*Service) RetireOccurrence

func (*Service) SetEvaluator

func (s *Service) SetEvaluator(evaluator occurrenceEvaluator, clock ports.Clock)

func (*Service) SetRollout

func (s *Service) SetRollout(policy *vulnerabilityrollout.Policy)

func (*Service) SetTransactionRunner

func (s *Service) SetTransactionRunner(transactions ports.TenantTransactionRunner)

Jump to

Keyboard shortcuts

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