Documentation ¶
Index ¶
- Variables
- func StructMapToStringMap(m map[string]struct{}) map[string]string
- type Analyzer
- type AptAnalyzer
- type DiffRequest
- type FileAnalyzer
- type FileLayerAnalyzer
- type HistDiff
- type HistoryAnalyzer
- type MetadataAnalyzer
- type MetadataDiff
- type MultiVersionPackageAnalyzer
- type NodeAnalyzer
- type PipAnalyzer
- type RPMAnalyzer
- type SingleRequest
- type SingleVersionPackageAnalyzer
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzers = map[string]Analyzer{ "history": HistoryAnalyzer{}, "metadata": MetadataAnalyzer{}, "file": FileAnalyzer{}, "layer": FileLayerAnalyzer{}, "apt": AptAnalyzer{}, "rpm": RPMAnalyzer{}, "pip": PipAnalyzer{}, "node": NodeAnalyzer{}, }
Functions ¶
func StructMapToStringMap ¶ added in v0.10.0
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 AptAnalyzer ¶
type AptAnalyzer struct { }
func (AptAnalyzer) Name ¶
func (a AptAnalyzer) Name() string
type DiffRequest ¶
type FileAnalyzer ¶
type FileAnalyzer struct { }
func (FileAnalyzer) Name ¶
func (a FileAnalyzer) Name() string
type FileLayerAnalyzer ¶ added in v0.10.0
type FileLayerAnalyzer struct { }
func (FileLayerAnalyzer) Diff ¶ added in v0.10.0
FileDiff diffs two packages and compares their contents
func (FileLayerAnalyzer) Name ¶ added in v0.10.0
func (a FileLayerAnalyzer) Name() string
type HistoryAnalyzer ¶
type HistoryAnalyzer struct { }
func (HistoryAnalyzer) Name ¶
func (a HistoryAnalyzer) Name() string
type MetadataAnalyzer ¶ added in v0.9.0
type MetadataAnalyzer struct { }
func (MetadataAnalyzer) Name ¶ added in v0.9.0
func (a MetadataAnalyzer) Name() string
type MetadataDiff ¶ added in v0.9.0
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 ¶ added in v0.6.0
type RPMAnalyzer struct { }
func (RPMAnalyzer) Analyze ¶ added in v0.6.0
Analyze collects information of the installed rpm packages on image.
func (RPMAnalyzer) Diff ¶ added in v0.6.0
Diff compares the installed rpm packages of image1 and image2.
func (RPMAnalyzer) Name ¶ added in v0.6.0
func (a RPMAnalyzer) 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 }
Click to show internal directories.
Click to hide internal directories.