Documentation ¶
Overview ¶
Package templating includes helper methods that apply go templates to Dracon Raw and Enriched Issues and return the resulting str
Index ¶
- func EnrichedIssueWithConfidenceText(confidence string) enrichedIssueOption
- func EnrichedIssueWithCount(count uint) enrichedIssueOption
- func EnrichedIssueWithFirstFound(firstFound time.Time) enrichedIssueOption
- func EnrichedIssueWithScanID(scanID string) enrichedIssueOption
- func EnrichedIssueWithScanStartTime(startTime time.Time) enrichedIssueOption
- func EnrichedIssueWithSeverityText(severity string) enrichedIssueOption
- func EnrichedIssueWithToolName(toolname string) enrichedIssueOption
- func TemplateStringEnriched(inputTemplate string, issue *v1.EnrichedIssue, opts ...enrichedIssueOption) (*string, error)
- func TemplateStringRaw(inputTemplate string, issue *v1.Issue) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichedIssueWithConfidenceText ¶ added in v0.55.0
func EnrichedIssueWithConfidenceText(confidence string) enrichedIssueOption
EnrichedIssueWithConfidenceText allows customising the Enriched Issue's ConfidenceText.
func EnrichedIssueWithCount ¶ added in v0.55.0
func EnrichedIssueWithCount(count uint) enrichedIssueOption
EnrichedIssueWithCount allows customising the Enriched Issue's Count.
func EnrichedIssueWithFirstFound ¶ added in v0.55.0
EnrichedIssueWithFirstFound allows customising the Enriched Issue's Scan first found time.
func EnrichedIssueWithScanID ¶ added in v0.55.0
func EnrichedIssueWithScanID(scanID string) enrichedIssueOption
EnrichedIssueWithScanID allows customising the Enriched Issue's Scan ID.
func EnrichedIssueWithScanStartTime ¶ added in v0.55.0
EnrichedIssueWithScanStartTime allows customising the Enriched Issue's Scan start time.
func EnrichedIssueWithSeverityText ¶ added in v0.55.0
func EnrichedIssueWithSeverityText(severity string) enrichedIssueOption
EnrichedIssueWithSeverityText allows customising the Enriched Issue's SeverityText.
func EnrichedIssueWithToolName ¶ added in v0.55.0
func EnrichedIssueWithToolName(toolname string) enrichedIssueOption
EnrichedIssueWithToolName allows customising the Enriched Issue's ToolName.
func TemplateStringEnriched ¶
func TemplateStringEnriched(inputTemplate string, issue *v1.EnrichedIssue, opts ...enrichedIssueOption) (*string, error)
TemplateStringEnriched applies the provided go template to the Enriched Issue provided and returns the resulting str
Types ¶
This section is empty.