verbose

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessVerbose

func ProcessVerbose(ctx context.Context, 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"`
	PubliclyAvailableVulnerabilities []VulnerabilityType `json:"publicly_available_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

type VulnerabilityType

type VulnerabilityType struct {
	Severity string `json:"severity"`
	ID       string `json:"id"`
	Title    string `json:"title"`
	URL      string `json:"url"`
}

VulnerabilityType type for Vulnerability in verbose output

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL