crowdsourcevexing

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecommendation = fmt.Errorf("no recommendation")

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 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 {
	ID               string
	PathPattern      dtos.PathPattern
	CVE              CVE
	AssetID          string
	AssetVersionName string
	Reasoning        string
	Assessment       string
	UpdatedAt        time.Time
}

func CrowdsourcedVexing

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

type Vote

type Vote struct {
	Voters []VoterID
	Value  float64
}

type VoterID added in v1.4.0

type VoterID struct {
	OrganizationID   string
	ProjectID        string
	AssetID          string
	AssetVersionName string
}

Jump to

Keyboard shortcuts

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