Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessVerbose ¶
func ProcessVerbose(analysedResult driver.GetResponseType, jsonOut bool) bool
ProcessVerbose processes verbose results and decides STDOUT format
Types ¶
type CustomColors ¶
type CustomColors struct {
Green func(...interface{}) string
White func(...interface{}) string
Cyan func(...interface{}) string
Red func(...interface{}) string
}
CustomColors maintain state of custom colors
type DependenciesType ¶
type DependenciesType struct {
Name string `json:"name"`
Version string `json:"version"`
Transitives []DependenciesType `json:"transitives"`
LatestVersion string `json:"latest_version"`
RecommendedVersion string `json:"recommended_version"`
CommonlyKnownVulnerabilities []VulnerabilityType `json:"commonly_known_vulnerabilities"`
VulnerabilitiesUniqueToSynk []VulnerabilityType `json:"vulnerabilities_unique_with_snyk"`
VulnerableTransitives []DependenciesType `json:"vulnerable_transitives"`
}
DependenciesType verbose output
type ProcessVulnerabilities ¶
type ProcessVulnerabilities struct {
AnalysedDependencies []DependenciesType
TotalTransitives int
TotalDirectVulnerabilities int
TotalTransitiveVulnerabilities int
Severities SeverityType
}
ProcessVulnerabilities is arg type of processVulnerabilities
type SeverityType ¶
type SeverityType struct {
Low []driver.VulnerabilitiesType `json:"low"`
Medium []driver.VulnerabilitiesType `json:"medium"`
High []driver.VulnerabilitiesType `json:"high"`
Critical []driver.VulnerabilitiesType `json:"critical"`
}
SeverityType is Possible Types of Severities from Server
type StackVerbose ¶
type StackVerbose struct {
Dependencies []DependenciesType `json:"analysed_dependencies"`
TotalDirectVulnerabilities int `json:"total_direct_vulnerabilities"`
TotalTransitives int `json:"total_transitives_scanned"`
TotalTransitiveVulnerabilities int `json:"transitive_vulnerabilities"`
Severity SeverityType `json:"severity"`
ReportLink string `json:"report_link"`
}
StackVerbose is SA Result Verbose output
Click to show internal directories.
Click to hide internal directories.