helmscan

package
v0.0.0-...-8075232 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateReport

func GenerateReport(comparison HelmComparison, generateJSON bool, generateMD bool) string

Types

type ContainerImage

type ContainerImage struct {
	Repository      string
	Tag             string
	ImageName       string
	ScanResult      imageScan.ScanResult
	Vulnerabilities map[string]imageScan.Vulnerability
}

func (ContainerImage) String

func (ci ContainerImage) String() string

type HelmChart

type HelmChart struct {
	Name           string
	Version        string
	HelmRepo       string
	ContainsImages []*ContainerImage
}

func Scan

func Scan(chartRef string) (HelmChart, error)

func (HelmChart) String

func (hc HelmChart) String() string

type HelmComparison

type HelmComparison struct {
	Before          HelmChart
	After           HelmChart
	AddedImages     map[string][]*ContainerImage
	RemovedImages   map[string][]*ContainerImage
	ChangedImages   map[string][]*ContainerImage
	UnChangedImages map[string][]*ContainerImage
	RemovedCVEs     map[string]map[string]reports.Vulnerability
	AddedCVEs       map[string]map[string]reports.Vulnerability
	UnchangedCVEs   map[string]map[string]reports.Vulnerability
}

func CompareHelmCharts

func CompareHelmCharts(before, after HelmChart) HelmComparison

Jump to

Keyboard shortcuts

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