Documentation ¶
Overview ¶
Package templating includes helper methods that apply go templates to Smithy 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 EnrichedIssueWithFixedCodeAnnotation(fixedCodeAnnotation string) 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 ¶
func EnrichedIssueWithConfidenceText(confidence string) enrichedIssueOption
EnrichedIssueWithConfidenceText allows customising the Enriched Issue's ConfidenceText.
func EnrichedIssueWithCount ¶
func EnrichedIssueWithCount(count uint) enrichedIssueOption
EnrichedIssueWithCount allows customising the Enriched Issue's Count.
func EnrichedIssueWithFirstFound ¶
EnrichedIssueWithFirstFound allows customising the Enriched Issue's Scan first found time.
func EnrichedIssueWithFixedCodeAnnotation ¶
func EnrichedIssueWithFixedCodeAnnotation(fixedCodeAnnotation string) enrichedIssueOption
EnrichedIssueWithFixedCodeAnnotation allows to define which of the annotations contains fixed code
func EnrichedIssueWithScanID ¶
func EnrichedIssueWithScanID(scanID string) enrichedIssueOption
EnrichedIssueWithScanID allows customising the Enriched Issue's Scan ID.
func EnrichedIssueWithScanStartTime ¶
EnrichedIssueWithScanStartTime allows customising the Enriched Issue's Scan start time.
func EnrichedIssueWithSeverityText ¶
func EnrichedIssueWithSeverityText(severity string) enrichedIssueOption
EnrichedIssueWithSeverityText allows customising the Enriched Issue's SeverityText.
func EnrichedIssueWithToolName ¶
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.