types

package
v0.0.15-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertOutputToMap

func ConvertOutputToMap(output Output) map[string]interface{}

Types

type AnalysisInfo

type AnalysisInfo struct {
	Status            codeclarity.AnalysisStatus `json:"status"`
	Errors            []exceptions.Error         `json:"errors"`
	AnalysisStartTime string                     `json:"analysis_start_time"`
	AnalysisEndTime   string                     `json:"analysis_end_time"`
	AnalysisDeltaTime float64                    `json:"analysis_delta_time"`
	AnalysisStats     AnalysisStats              `json:"stats"`
}

type AnalysisStatLicenseSeverityDist

type AnalysisStatLicenseSeverityDist map[string]int

type AnalysisStats

type AnalysisStats struct {
	NumberOfVulnerabilities int `json:"number_of_vulnerabilities"`
}

type AnalysisStatus

type AnalysisStatus string
const (
	SUCCESS AnalysisStatus = "success"
	FAILURE AnalysisStatus = "failure"
)

type ArtifactLocation

type ArtifactLocation struct {
	URI       string `json:"uri"`
	URIBaseId string `json:"uriBaseId"`
	Index     int    `json:"index"`
}

type CodeQL

type CodeQL struct {
	Runs []Run `json:"runs"`
}

type Location

type Location struct {
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type Message

type Message struct {
	Text string `json:"text"`
}

type Output

type Output struct {
	WorkSpaces   map[string]WorkspaceInfo `json:"workspaces"`
	AnalysisInfo AnalysisInfo             `json:"analysis_info"`
}

type PhysicalLocation

type PhysicalLocation struct {
	ArtifactLocation ArtifactLocation `json:"artifactLocation"`
	Region           Region           `json:"region"`
}

type Region

type Region struct {
	StartLine   int `json:"startLine"`
	EndLine     int `json:"endLine"`
	StartColumn int `json:"startColumn"`
	EndColumn   int `json:"endColumn"`
}

type Result

type Result struct {
	RuleId    string     `json:"ruleId"`
	RuleIndex int        `json:"ruleIndex"`
	Message   Message    `json:"message"`
	Locations []Location `json:"locations"`
}

type Run

type Run struct {
	Results []Result `json:"results"`
}

type WorkspaceInfo

type WorkspaceInfo struct {
	Results []Result `json:"results"`
}

Jump to

Keyboard shortcuts

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