Documentation ¶
Index ¶
- Constants
- func GetScanDataCSVFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
- func GetScanDataJSONFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
- func GetScanDataPrettyFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
- func GetScanDataSARIFFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp, isQuiet bool) error
- type Location
- type ReportingDescriptor
- type Result
- type Runs
- type Schema
- type ToolComponent
Constants ¶
View Source
const SCAVulnerabilityType = "sca"
Variables ¶
This section is empty.
Functions ¶
func GetScanDataCSVFormat ¶
func GetScanDataCSVFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
GetScanDataCSVFormat parses guardrailsclient.GetScanDataResp to csv format.
func GetScanDataJSONFormat ¶
func GetScanDataJSONFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
GetScanDataJSONFormat parses guardrailsclient.GetScanDataResp to json format.
func GetScanDataPrettyFormat ¶
func GetScanDataPrettyFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp) error
GetScanDataPrettyFormat parses guardrailsclient.GetScanDataResp to pretty format.
func GetScanDataSARIFFormat ¶
func GetScanDataSARIFFormat(w io.Writer, resp *guardrailsclient.GetScanDataResp, isQuiet bool) error
GetScanDataJSONFormat parses guardrailsclient.GetScanDataResp to SARIF format.
Types ¶
type ReportingDescriptor ¶
type ReportingDescriptor struct { ID string `json:"id"` Name string `json:"name"` ShortDescription struct { Text string `json:"text"` } `json:"shortDescription"` FullDescription struct { Text string `json:"text"` } `json:"fullDescription"` Help struct { Text string `json:"text"` Markdown string `json:"markdown"` } `json:"help"` Properties struct { Tags []string `json:"tags"` Problem struct { Severity string `json:"severity"` } `json:"problem"` SecuritySeverity string `json:"security-severity"` } `json:"properties"` }
type Runs ¶
type Runs struct { Tool struct { Driver ToolComponent `json:"driver"` } `json:"tool"` Results []Result `json:"results"` }
type ToolComponent ¶
type ToolComponent struct { Name string `json:"name"` Rules []ReportingDescriptor `json:"rules"` }
Click to show internal directories.
Click to hide internal directories.