Documentation
¶
Index ¶
- Constants
- func CanonicalSeverity(s string) string
- func ReadFileListFindingsOutput(filename string) (inspector2.ListFindingsOutput, error)
- func TableColumnsImageVulnerabilities() ([]string, map[int]string)
- func TableColumnsImageVulnerabilityPackages() []string
- type Finding
- func (f Finding) FilePaths() []string
- func (f Finding) FilePathsInclPOMProperties() bool
- func (f Finding) FindingOrVendorSeverity(canonical bool) string
- func (f Finding) FindingSeverity(canonical bool) string
- func (f Finding) ImageHashes() []string
- func (f Finding) ImageRepoNameVulnIDs(sep string) []string
- func (f Finding) ImageRepositoryNames() []string
- func (f Finding) MustVulnerabilityField(field, def string, opts *govex.ValueOpts) string
- func (f Finding) PackageSlices(fields []string, opts *govex.ValueOpts) ([][]string, error)
- func (f Finding) VendorCreatedAt() *time.Time
- func (f Finding) VendorCreatedAtAgeMonths() *float32
- func (f Finding) VendorSeverity(canonical bool) string
- func (f Finding) VulnerabilityField(field string, opts *govex.ValueOpts) (string, error)
- func (f Finding) VulnerabilityFields(fields []string, opts *govex.ValueOpts) ([]string, error)
- func (f Finding) VulnerabilityID() string
- func (f Finding) VulnerablePackages() []types.VulnerablePackage
- type Findings
- func (fs Findings) FilterImageHashes(hashesIncl []string) Findings
- func (fs Findings) FilterPOMPropertiesExcl() Findings
- func (fs Findings) FindingOneRawMatch(s string) *Finding
- func (fs Findings) HistogramSets() *histogram.HistogramSets
- func (fs Findings) ImageRepoNameVulnIDs(sep string) []string
- func (fs Findings) ImageRepositoryNames() []string
- func (fs Findings) Stats() FindingsStats
- func (fs Findings) TableImageVulnerabilities(cols []string, fmtMap map[int]string, opts *ReportOptions) (*table.Table, error)
- func (fs Findings) TableImagenameSeverityYear(opts *ReportOptions) (*table.Table, error)
- func (fs Findings) TablePackages(cols []string, opts *govex.ValueOpts) (*table.Table, error)
- func (fs Findings) TablePivotImagenameSeverityCounts(opts *ReportOptions) (*table.Table, error)
- func (fs Findings) TableSetVulnerabilities(opts *ReportOptions) (*table.TableSet, error)
- type FindingsStats
- func (stats FindingsStats) FindingVulnerablePackageCounts() map[string]int
- func (stats FindingsStats) ImagenameVulnidCounts() map[string]int
- func (stats FindingsStats) ImagenameVulnidRevCounts() map[string]int
- func (stats FindingsStats) VendorCreatedAtMonthly() map[string]int
- func (stats FindingsStats) VendorCreatedAtYearly() map[string]int
- func (stats FindingsStats) VendorSeverities(canonicalSev bool) map[string]int
- type Package
- func (p Package) FilepathAtVersion() string
- func (p Package) FilepathAtVersionFixed() string
- func (p Package) FilepathString() string
- func (p Package) NameAndFilepathAtVersion() string
- func (p Package) NameAndFilepathAtVersionFixed() string
- func (p Package) NameAtVersion() string
- func (p Package) NameAtVersionFixed() string
- func (p Package) NameString() string
- func (p Package) VersionFixedString() string
- func (p Package) VersionString() string
- type Packages
- type ReportOptions
- type Resource
- type Vulnerability
Constants ¶
View Source
const ( FindingDescription = "find_desc" FindingSeverity = "find_severity" ImageHash = "image_hash" ImageRepositoryName = "image_repo_name" ImageNameVulnerabilityID = "image_name_vuln_id" VulnerabilityCreated = "vuln_created" VulnerabilityCreatedYear = "vuln_created_year" VulnerabilityCreatedAgeMonthsInt = "vuln_created_age_months_int" VulnerabilitySLADueDate = "vuln_sla_due_date" VulnerabilityID = "vuln_id" VulnerabilitySeverity = "vuln_severity" VulnerabilitySourceURL = "vuln_url" VulnerabilityReferenceURLs = "vuln_ref_urls" PackageInfoFilepath = "pkg_filepath" PackageInfoName = "pkg_name" PackageInfoVersion = "pkg_version" PackageInfoVersionFixed = "pkg_version_fixed" PackagesFilepathsAtVersion = "pkgs_filepaths_version" PackagesFilepathsAtVersionFixed = "pkgs_filepaths_version_fixed" PackagesNamesAtVersion = "pkgs_names_version" PackagesNamesAtVersionsFixed = "pkgs_names_version_fixed" PackagesNamesAndFilepathsAtVersion = "pkgs_names_filepaths_version" PackagesNamesAndFilepathsAtVersionFixed = "pkgs_names_filepaths_version_fixed" )
Variables ¶
This section is empty.
Functions ¶
func CanonicalSeverity ¶
func ReadFileListFindingsOutput ¶
func ReadFileListFindingsOutput(filename string) (inspector2.ListFindingsOutput, error)
func TableColumnsImageVulnerabilities ¶
TableColumnsImageVulnerabilities returns rows where each row is an image+vulnerability.
func TableColumnsImageVulnerabilityPackages ¶
func TableColumnsImageVulnerabilityPackages() []string
TableColumnsImageVulnerabilityPackages returns rows where each row is an image+vulnerability+package.
Types ¶
type Finding ¶
func (Finding) FilePathsInclPOMProperties ¶
func (Finding) FindingOrVendorSeverity ¶ added in v0.7.2
func (Finding) FindingSeverity ¶
func (Finding) ImageHashes ¶
func (Finding) ImageRepoNameVulnIDs ¶
ImageRepoNameVulnID is used as a unique key across images.
func (Finding) ImageRepositoryNames ¶
func (Finding) MustVulnerabilityField ¶
func (Finding) PackageSlices ¶
PackageSlices returns one slice per vulnerable package.
func (Finding) VendorCreatedAt ¶
func (Finding) VendorCreatedAtAgeMonths ¶
func (Finding) VendorSeverity ¶
func (Finding) VulnerabilityField ¶
func (Finding) VulnerabilityFields ¶
VulnerabilitySlices returns one slice per vulnerable package.
func (Finding) VulnerabilityID ¶
func (Finding) VulnerablePackages ¶
func (f Finding) VulnerablePackages() []types.VulnerablePackage
type Findings ¶
func (Findings) FilterImageHashes ¶
func (Findings) FilterPOMPropertiesExcl ¶
func (Findings) FindingOneRawMatch ¶
func (Findings) HistogramSets ¶
func (fs Findings) HistogramSets() *histogram.HistogramSets
HistogramSets returns histogram sets using the fields
func (Findings) ImageRepoNameVulnIDs ¶
ImageRepoNameVulnID is used as a unique key across images.
func (Findings) ImageRepositoryNames ¶
ImageRepositoryNames returns a list of unique repo names
func (Findings) Stats ¶
func (fs Findings) Stats() FindingsStats
func (Findings) TableImageVulnerabilities ¶
func (Findings) TableImagenameSeverityYear ¶
func (fs Findings) TableImagenameSeverityYear(opts *ReportOptions) (*table.Table, error)
func (Findings) TablePackages ¶
Table is used as a unique key across images.
func (Findings) TablePivotImagenameSeverityCounts ¶
func (fs Findings) TablePivotImagenameSeverityCounts(opts *ReportOptions) (*table.Table, error)
func (Findings) TableSetVulnerabilities ¶
func (fs Findings) TableSetVulnerabilities(opts *ReportOptions) (*table.TableSet, error)
type FindingsStats ¶
type FindingsStats struct {
Findings Findings
}
func (FindingsStats) FindingVulnerablePackageCounts ¶
func (stats FindingsStats) FindingVulnerablePackageCounts() map[string]int
func (FindingsStats) ImagenameVulnidCounts ¶
func (stats FindingsStats) ImagenameVulnidCounts() map[string]int
ImageRepoNameVulnID is used as a unique key across images.
func (FindingsStats) ImagenameVulnidRevCounts ¶
func (stats FindingsStats) ImagenameVulnidRevCounts() map[string]int
func (FindingsStats) VendorCreatedAtMonthly ¶
func (stats FindingsStats) VendorCreatedAtMonthly() map[string]int
func (FindingsStats) VendorCreatedAtYearly ¶
func (stats FindingsStats) VendorCreatedAtYearly() map[string]int
func (FindingsStats) VendorSeverities ¶
func (stats FindingsStats) VendorSeverities(canonicalSev bool) map[string]int
type Package ¶
type Package types.VulnerablePackage
func (Package) FilepathAtVersion ¶
func (Package) FilepathAtVersionFixed ¶
func (Package) FilepathString ¶
func (Package) NameAndFilepathAtVersion ¶
func (Package) NameAndFilepathAtVersionFixed ¶
func (Package) NameAtVersion ¶
func (Package) NameAtVersionFixed ¶
func (Package) NameString ¶
func (Package) VersionFixedString ¶
func (Package) VersionString ¶
type Packages ¶
type Packages []types.VulnerablePackage
func (Packages) FilepathsAtVersion ¶
func (Packages) FilepathsAtVersionFixed ¶
func (Packages) NamesAndFilepathsAtVersion ¶
func (Packages) NamesAndFilepathsAtVersionFixed ¶
type ReportOptions ¶ added in v0.7.2
type ReportOptions struct {
ColumnInsertOptions []table.ColumnInsertOpts
VulnerabilityValueOptions *govex.ValueOpts
}
type Vulnerability ¶
type Vulnerability types.PackageVulnerabilityDetails
Click to show internal directories.
Click to hide internal directories.