Documentation
¶
Index ¶
- type ArtifactLocation
- type Driver
- type IReport
- type Locations
- type Message
- type PhysicalLocation
- type Properties
- type Region
- type Report
- func (r *Report) GetOutput(format string, cfg *config.Config) (string, error)
- func (r *Report) GetResults() map[string][]*secrets.Secret
- func (r *Report) GetTotalItemsScanned() int
- func (r *Report) GetTotalSecretsFound() int
- func (r *Report) IncTotalItemsScanned(n int)
- func (r *Report) IncTotalSecretsFound(n int)
- func (r *Report) SetResults(results map[string][]*secrets.Secret)
- func (r *Report) ShowReport(format string, cfg *config.Config) error
- func (r *Report) WriteFile(reportPath []string, cfg *config.Config) error
- type Results
- type Runs
- type Sarif
- type SarifRule
- type ShortDescription
- type Snippet
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactLocation ¶
type ArtifactLocation struct {
URI string `json:"uri"`
}
type IReport ¶ added in v4.3.0
type IReport interface {
ShowReport(format string, cfg *config.Config) error
WriteFile(reportPath []string, cfg *config.Config) error
GetOutput(format string, cfg *config.Config) (string, error)
GetResults() map[string][]*secrets.Secret
SetResults(results map[string][]*secrets.Secret)
GetTotalItemsScanned() int
GetTotalSecretsFound() int
IncTotalItemsScanned(n int)
IncTotalSecretsFound(n int)
}
type Locations ¶
type Locations struct {
PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}
type PhysicalLocation ¶
type PhysicalLocation struct {
ArtifactLocation ArtifactLocation `json:"artifactLocation"`
Region Region `json:"region"`
}
type Properties ¶
type Properties map[string]interface{}
type Report ¶
type Report struct {
TotalItemsScanned int `json:"totalItemsScanned"`
TotalSecretsFound int `json:"totalSecretsFound"`
Results map[string][]*secrets.Secret `json:"results"`
// contains filtered or unexported fields
}
func (*Report) GetResults ¶ added in v4.3.0
func (*Report) GetTotalItemsScanned ¶ added in v4.3.0
func (*Report) GetTotalSecretsFound ¶ added in v4.3.0
func (*Report) IncTotalItemsScanned ¶ added in v4.3.0
func (*Report) IncTotalSecretsFound ¶ added in v4.3.0
func (*Report) SetResults ¶ added in v4.3.0
type Results ¶
type Results struct {
Message Message `json:"message"`
RuleId string `json:"ruleId"`
Locations []Locations `json:"locations"`
Properties Properties `json:"properties,omitempty"`
}
type ShortDescription ¶
type ShortDescription struct {
Text string `json:"text"`
}
type Snippet ¶
type Snippet struct {
Text string `json:"text"`
Properties Properties `json:"properties,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.