Documentation
¶
Index ¶
- type ArtifactLocation
- type CodeFlow
- type DefaultConfiguration
- type Driver
- type ExampleCommitFix
- type Fingerprints
- type Help
- type Location
- type PhysicalLocation
- type Result
- type ResultMessage
- type ResultProperties
- type Rule
- type RuleProperties
- type Run
- type SarifResponse
- type ShortDescription
- type ThreadFlow
- type ThreadFlowLocation
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactLocation ¶
type CodeFlow ¶
type CodeFlow struct {
ThreadFlows []ThreadFlow `json:"threadFlows"`
}
type DefaultConfiguration ¶
type DefaultConfiguration struct {
Level string `json:"level"`
}
type ExampleCommitFix ¶
type Fingerprints ¶
type Location ¶
type Location struct { ID int `json:"id"` PhysicalLocation PhysicalLocation `json:"PhysicalLocation"` }
type PhysicalLocation ¶
type PhysicalLocation struct { ArtifactLocation ArtifactLocation `json:"ArtifactLocation"` Region region `json:"region"` }
type Result ¶
type Result struct { RuleID string `json:"ruleId"` RuleIndex int `json:"ruleIndex"` Level string `json:"level"` Message ResultMessage `json:"message"` Locations []Location `json:"locations"` Fingerprints Fingerprints `json:"Fingerprints"` CodeFlows []CodeFlow `json:"codeFlows"` Properties ResultProperties `json:"properties"` }
type ResultMessage ¶
type ResultProperties ¶
type Rule ¶
type Rule struct { ID string `json:"id"` Name string `json:"name"` ShortDescription ShortDescription `json:"ShortDescription"` DefaultConfiguration DefaultConfiguration `json:"DefaultConfiguration"` Help Help `json:"Help"` Properties RuleProperties `json:"properties"` }
type RuleProperties ¶
type RuleProperties struct { Tags []string `json:"tags"` ShortDescription struct { Text string `json:"text"` } `json:"ShortDescription"` Help struct { Markdown string `json:"markdown"` Text string `json:"text"` } `json:"Help"` Categories []string `json:"categories"` ExampleCommitFixes []ExampleCommitFix `json:"exampleCommitFixes"` ExampleCommitDescriptions []string `json:"exampleCommitDescriptions"` Precision string `json:"precision"` RepoDatasetSize int `json:"repoDatasetSize"` Cwe []string `json:"cwe"` }
type SarifResponse ¶
type SarifResponse struct { Type string `json:"type"` Progress float64 `json:"progress"` Status string `json:"status"` Timing struct { FetchingCode int `json:"fetchingCode"` Queue int `json:"queue"` Analysis int `json:"analysis"` } `json:"timing"` Coverage []struct { Files int `json:"files"` IsSupported bool `json:"isSupported"` Lang string `json:"lang"` } `json:"coverage"` Sarif struct { Schema string `json:"$schema"` Version string `json:"version"` Runs []Run `json:"runs"` } `json:"sarif"` }
func UploadAndAnalyze ¶
func UploadAndAnalyze() (*SarifResponse, error)
UploadAndAnalyze returns a fake SARIF response for testing. Use target-service to run analysis on.
type ShortDescription ¶
type ShortDescription struct {
Text string `json:"text"`
}
type ThreadFlow ¶
type ThreadFlow struct {
Locations []ThreadFlowLocation `json:"locations"`
}
type ThreadFlowLocation ¶
type ThreadFlowLocation struct {
Location Location `json:"Location"`
}
Click to show internal directories.
Click to hide internal directories.