Help us shape the future of Go! Take the 2026 Go Developer Survey

compat

package
v1.16.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyVulnDTO

type DependencyVulnDTO struct {
	Message                      *string            `json:"message"`
	AssetVersionName             string             `json:"assetVersionId"`
	AssetID                      string             `json:"assetId"`
	State                        dtos.VulnState     `json:"state"`
	CVE                          dtos.CVEDTO        `json:"cve"`
	CVEID                        string             `json:"cveID"`
	ComponentPurl                string             `json:"componentPurl"`
	ComponentFixedVersion        *string            `json:"componentFixedVersion"`
	VulnerabilityPath            []string           `json:"vulnerabilityPath"`
	DirectDependencyFixedVersion *string            `json:"directDependencyFixedVersion"`
	Effort                       *int               `json:"effort"`
	RiskAssessment               *int               `json:"riskAssessment"`
	RawRiskAssessment            *float64           `json:"rawRiskAssessment"`
	Priority                     *int               `json:"priority"`
	LastDetected                 time.Time          `json:"lastDetected"`
	CreatedAt                    time.Time          `json:"createdAt"`
	TicketID                     *string            `json:"ticketId"`
	TicketURL                    *string            `json:"ticketUrl"`
	ManualTicketCreation         bool               `json:"manualTicketCreation"`
	Artifacts                    []dtos.ArtifactDTO `json:"artifacts"`
	Exploits                     []dtos.ExploitDTO  `json:"exploits"`

	RiskRecalculatedAt time.Time `json:"riskRecalculatedAt"`
}

type FirstPartyScanResponse

type FirstPartyScanResponse struct {
	AmountOpened    int                 `json:"amountOpened"`
	AmountClosed    int                 `json:"amountClosed"`
	FirstPartyVulns []FirstPartyVulnDTO `json:"firstPartyVulns"`
}

type FirstPartyVulnDTO

type FirstPartyVulnDTO struct {
	ScannerIDs           string                `json:"scannerIds"`
	Message              *string               `json:"message"`
	AssetVersionName     string                `json:"assetVersionName"`
	AssetID              string                `json:"assetId"`
	State                dtos.VulnState        `json:"state"`
	RuleID               string                `json:"ruleId"`
	URI                  string                `json:"uri"`
	SnippetContents      []dtos.SnippetContent `json:"snippetContents"`
	CreatedAt            time.Time             `json:"createdAt"`
	TicketID             *string               `json:"ticketId"`
	TicketURL            *string               `json:"ticketUrl"`
	ManualTicketCreation bool                  `json:"manualTicketCreation"`
	Commit               string                `json:"commit"`
	Email                string                `json:"email"`
	Author               string                `json:"author"`
	Date                 string                `json:"date"`

	RuleName        string         `json:"ruleName"`
	RuleHelp        string         `json:"ruleHelp"`
	RuleHelpURI     string         `json:"ruleHelpURI"`
	RuleDescription string         `json:"ruleDescription"`
	RuleProperties  map[string]any `json:"ruleProperties"`
}

type ScanResponse

type ScanResponse struct {
	AmountOpened    int                 `json:"amountOpened"`
	AmountClosed    int                 `json:"amountClosed"`
	DependencyVulns []DependencyVulnDTO `json:"dependencyVulns"`
}

Jump to

Keyboard shortcuts

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