Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeverityToText ¶
The Severity field is normally mapped into the jira 'Impact' field, so the assumption is that Severity = Impact; which in practice is generally true with small exceptions.
func TextToConfidence ¶
func TextToConfidence(confidence string) v1.Confidence
TextToConfidence maps between dracon Confidence and a it's ext representation, used for adding the Confidence to Jira description.
func TextToSeverity ¶
TextToSeverity maps between dracon Severity and Jira severity textual fields.
Types ¶
type Document ¶
type Document struct { // The fields below are not used in this consumer. We use the text versions instead. Annotations map[string]string `json:"annotations"` ConfidenceText string `json:"confidence_text"` Count string `json:"count"` CVE string `json:"cve"` CVSS string `json:"cvss"` Description string `json:"description"` FalsePositive string `json:"false_positive"` FirstFound time.Time `json:"first_found"` Hash string `json:"hash"` ScanID string `json:"scan_id"` ScanStartTime time.Time `json:"scan_start_time"` SeverityText string `json:"severity_text"` Source string `json:"source"` Target string `json:"target"` Title string `json:"title"` ToolName string `json:"tool_name"` Type string `json:"type"` // The fields below are not used in this consumer. We use the text versions instead. }
Document represents a Dracon result (issue) object.
func NewEnriched ¶
func NewEnriched(scanStartTime time.Time, res *v1.EnrichedLaunchToolResponse, iss *v1.EnrichedIssue) Document
NewEnriched returns an []byte containing the parsed Document (dracon result) from the given enriched issue.
Click to show internal directories.
Click to hide internal directories.