Documentation
¶
Index ¶
- Variables
- func StructMapToStringMap(m map[string]struct{}) map[string]string
- type Analyzer
- type ApkAnalyzer
- type ApkLayerAnalyzer
- type AptAnalyzer
- type AptLayerAnalyzer
- type DiffRequest
- type EmergeAnalyzer
- type FileAnalyzer
- type FileLayerAnalyzer
- type HistDiff
- type HistoryAnalyzer
- type MetadataAnalyzer
- type MetadataDiff
- type MultiVersionPackageAnalyzer
- type NodeAnalyzer
- type PipAnalyzer
- type RPMAnalyzer
- type RPMLayerAnalyzer
- type SingleRequest
- type SingleVersionPackageAnalyzer
- type SingleVersionPackageLayerAnalyzer
- type SizeAnalyzer
- type SizeLayerAnalyzer
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzers = map[string]Analyzer{ // contains filtered or unexported fields }
View Source
var LayerAnalyzers = [...]string{layerAnalyzer, sizeLayerAnalyzer, apkLayerAnalyzer, aptLayerAnalyzer, rpmLayerAnalyzer}
Functions ¶
func StructMapToStringMap ¶
StructMapToStringMap converts map[string]struct{} to map[string]string knowing that the struct in the value is always empty
Types ¶
type Analyzer ¶
type Analyzer interface { Diff(image1, image2 pkgutil.Image) (util.Result, error) Analyze(image pkgutil.Image) (util.Result, error) Name() string }
func GetAnalyzers ¶
type ApkAnalyzer ¶ added in v0.21.0
type ApkAnalyzer struct { }
func (ApkAnalyzer) Name ¶ added in v0.21.0
func (a ApkAnalyzer) Name() string
type ApkLayerAnalyzer ¶ added in v0.21.0
type ApkLayerAnalyzer struct { }
func (ApkLayerAnalyzer) Name ¶ added in v0.21.0
func (a ApkLayerAnalyzer) Name() string
type AptAnalyzer ¶
type AptAnalyzer struct { }
func (AptAnalyzer) Name ¶
func (a AptAnalyzer) Name() string
type AptLayerAnalyzer ¶
type AptLayerAnalyzer struct { }
func (AptLayerAnalyzer) Name ¶
func (a AptLayerAnalyzer) Name() string
type DiffRequest ¶
type EmergeAnalyzer ¶
type EmergeAnalyzer struct{}
func (EmergeAnalyzer) Name ¶
func (em EmergeAnalyzer) Name() string
type FileAnalyzer ¶
type FileAnalyzer struct { }
func (FileAnalyzer) Name ¶
func (a FileAnalyzer) Name() string
type FileLayerAnalyzer ¶
type FileLayerAnalyzer struct { }
func (FileLayerAnalyzer) Name ¶
func (a FileLayerAnalyzer) Name() string
type HistoryAnalyzer ¶
type HistoryAnalyzer struct { }
func (HistoryAnalyzer) Name ¶
func (a HistoryAnalyzer) Name() string
type MetadataAnalyzer ¶
type MetadataAnalyzer struct { }
func (MetadataAnalyzer) Name ¶
func (a MetadataAnalyzer) Name() string
type MetadataDiff ¶
type MultiVersionPackageAnalyzer ¶
type MultiVersionPackageAnalyzer interface { Name() string // contains filtered or unexported methods }
type NodeAnalyzer ¶
type NodeAnalyzer struct { }
func (NodeAnalyzer) Name ¶
func (a NodeAnalyzer) Name() string
type PipAnalyzer ¶
type PipAnalyzer struct { }
func (PipAnalyzer) Diff ¶
PipDiff compares pip-installed Python packages between layers of two different images.
func (PipAnalyzer) Name ¶
func (a PipAnalyzer) Name() string
type RPMAnalyzer ¶
type RPMAnalyzer struct { }
type RPMLayerAnalyzer ¶
type RPMLayerAnalyzer struct { }
func (RPMLayerAnalyzer) Analyze ¶
Analyze collects information of the installed rpm packages on each layer
func (RPMLayerAnalyzer) Diff ¶
Diff compares the installed rpm packages of image1 and image2 for each layer
func (RPMLayerAnalyzer) Name ¶
func (a RPMLayerAnalyzer) Name() string
Name returns the name of the analyzer.
type SingleRequest ¶
func (SingleRequest) GetAnalysis ¶
func (req SingleRequest) GetAnalysis() (map[string]util.Result, error)
type SingleVersionPackageAnalyzer ¶
type SingleVersionPackageAnalyzer interface { Name() string // contains filtered or unexported methods }
type SingleVersionPackageLayerAnalyzer ¶
type SingleVersionPackageLayerAnalyzer interface { Name() string // contains filtered or unexported methods }
type SizeAnalyzer ¶
type SizeAnalyzer struct { }
func (SizeAnalyzer) Name ¶
func (a SizeAnalyzer) Name() string
type SizeLayerAnalyzer ¶
type SizeLayerAnalyzer struct { }
func (SizeLayerAnalyzer) Diff ¶
SizeLayerDiff diffs the layers of two images and compares their size
func (SizeLayerAnalyzer) Name ¶
func (a SizeLayerAnalyzer) Name() string
Click to show internal directories.
Click to hide internal directories.