Documentation
¶
Index ¶
- func NewEnriched(scanStartTime time.Time, res *v1.EnrichedLaunchToolResponse, ...) ([]byte, error)
- func NewRaw(scanStartTime time.Time, res *v1.LaunchToolResponse, iss *v1.Issue) ([]byte, error)
- func TextToConfidence(confidence string) v1.Confidence
- func TextToSeverity(severity string) v1.Severity
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnriched ¶
func NewEnriched(scanStartTime time.Time, res *v1.EnrichedLaunchToolResponse, iss *v1.EnrichedIssue) ([]byte, error)
NewEnriched returns an []byte containing the parsed Document (dracon result) from the given enriched issue
func NewRaw ¶
NewRaw returns an []byte containing the parsed Document (dracon result) from the given raw issue
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 {
ScanStartTime time.Time `json:"scan_start_time"`
ScanID string `json:"scan_id"`
ToolName string `json:"tool_name"`
Source string `json:"source"`
Target string `json:"target"`
Type string `json:"type"`
Title string `json:"title"`
SeverityText string `json:"severity_text"`
CVSS string `json:"cvss"`
ConfidenceText string `json:"confidence_text"`
Description string `json:"description"`
FirstFound time.Time `json:"first_found"`
Count string `json:"count"`
FalsePositive string `json:"false_positive"`
Hash string `json:"hash"`
CVE string `json:"cve"`
}
Document represents a Dracon result (issue) object
Click to show internal directories.
Click to hide internal directories.