crowdsourcevexing

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FalsePositive = "false-positive"
	Affected      = "affected"
)

Variables

This section is empty.

Functions

func PathToString

func PathToString(vexRule VexRule) string

Types

type Asset

type Asset struct {
	ID        string
	ProjectID string
}

type CVE

type CVE struct {
	CVE string
}

type DependencyNode

type DependencyNode struct {
	Dependecy string            // Consists of dependency name and version
	Children  []*DependencyNode // Will be [] if node is a leaf
}

type DependencyTree

type DependencyTree struct {
	Nodes map[string]*DependencyNode
}

type Organization

type Organization struct {
	ID         string
	Trustscore float64
	CreatedAt  time.Time
	CreatedBy  string
	UserIDs    []string
}

type Project

type Project struct {
	ID             string
	OrganizationID string
	Trustscore     float64
}

type User

type User struct {
	ID string
}

type VexRule

type VexRule struct {
	PathPattern dtos.PathPattern
	CVE         CVE
	AssetID     string
	Reasoning   string
	Assessment  string // Use assessment constants for options, e.g. "false-positive", "affected"
}

func CrowdsourcedVexing

func CrowdsourcedVexing(dependencyPath []string, cve CVE, vexRules []VexRule, organizations []Organization, projects []Project, assets []Asset) (VexRule, error)

type Vote

type Vote struct {
	Voters []struct {
		OrganizationID string
		ProjectID      string
		AssetID        string
	}
	Value float64
}

Jump to

Keyboard shortcuts

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