differs

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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, aptLayerAnalyzer, rpmLayerAnalyzer}

Functions

func StructMapToStringMap added in v0.10.0

func StructMapToStringMap(m map[string]struct{}) map[string]string

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

func GetAnalyzers(analyzeNames []string) ([]Analyzer, error)

type AptAnalyzer

type AptAnalyzer struct {
}

func (AptAnalyzer) Analyze

func (a AptAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (AptAnalyzer) Diff

func (a AptAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

AptDiff compares the packages installed by apt-get.

func (AptAnalyzer) Name

func (a AptAnalyzer) Name() string

type AptLayerAnalyzer added in v0.12.0

type AptLayerAnalyzer struct {
}

func (AptLayerAnalyzer) Analyze added in v0.12.0

func (a AptLayerAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (AptLayerAnalyzer) Diff added in v0.12.0

func (a AptLayerAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

AptDiff compares the packages installed by apt-get.

func (AptLayerAnalyzer) Name added in v0.12.0

func (a AptLayerAnalyzer) Name() string

type DiffRequest

type DiffRequest struct {
	Image1    pkgutil.Image
	Image2    pkgutil.Image
	DiffTypes []Analyzer
}

func (DiffRequest) GetDiff

func (req DiffRequest) GetDiff() (map[string]util.Result, error)

type FileAnalyzer

type FileAnalyzer struct {
}

func (FileAnalyzer) Analyze

func (a FileAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (FileAnalyzer) Diff

func (a FileAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

FileDiff diffs two packages and compares their contents

func (FileAnalyzer) Name

func (a FileAnalyzer) Name() string

type FileLayerAnalyzer added in v0.10.0

type FileLayerAnalyzer struct {
}

func (FileLayerAnalyzer) Analyze added in v0.10.0

func (a FileLayerAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (FileLayerAnalyzer) Diff added in v0.10.0

func (a FileLayerAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

FileDiff diffs two packages and compares their contents

func (FileLayerAnalyzer) Name added in v0.10.0

func (a FileLayerAnalyzer) Name() string

type HistDiff

type HistDiff struct {
	Adds []string
	Dels []string
}

type HistoryAnalyzer

type HistoryAnalyzer struct {
}

func (HistoryAnalyzer) Analyze

func (a HistoryAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (HistoryAnalyzer) Diff

func (a HistoryAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

func (HistoryAnalyzer) Name

func (a HistoryAnalyzer) Name() string

type MetadataAnalyzer added in v0.9.0

type MetadataAnalyzer struct {
}

func (MetadataAnalyzer) Analyze added in v0.9.0

func (a MetadataAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (MetadataAnalyzer) Diff added in v0.9.0

func (a MetadataAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

func (MetadataAnalyzer) Name added in v0.9.0

func (a MetadataAnalyzer) Name() string

type MetadataDiff added in v0.9.0

type MetadataDiff struct {
	Adds []string
	Dels []string
}

type MultiVersionPackageAnalyzer

type MultiVersionPackageAnalyzer interface {
	Name() string
	// contains filtered or unexported methods
}

type NodeAnalyzer

type NodeAnalyzer struct {
}

func (NodeAnalyzer) Analyze

func (a NodeAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (NodeAnalyzer) Diff

func (a NodeAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

NodeDiff compares the packages installed by apt-get.

func (NodeAnalyzer) Name

func (a NodeAnalyzer) Name() string

type PipAnalyzer

type PipAnalyzer struct {
}

func (PipAnalyzer) Analyze

func (a PipAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (PipAnalyzer) Diff

func (a PipAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

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

func (a RPMAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

Analyze collects information of the installed rpm packages on image.

func (RPMAnalyzer) Diff added in v0.6.0

func (a RPMAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

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 RPMLayerAnalyzer added in v0.12.0

type RPMLayerAnalyzer struct {
}

func (RPMLayerAnalyzer) Analyze added in v0.12.0

func (a RPMLayerAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

Analyze collects information of the installed rpm packages on each layer

func (RPMLayerAnalyzer) Diff added in v0.12.0

func (a RPMLayerAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

Diff compares the installed rpm packages of image1 and image2 for each layer

func (RPMLayerAnalyzer) Name added in v0.12.0

func (a RPMLayerAnalyzer) Name() string

Name returns the name of the analyzer.

type SingleRequest

type SingleRequest struct {
	Image        pkgutil.Image
	AnalyzeTypes []Analyzer
}

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 added in v0.12.0

type SingleVersionPackageLayerAnalyzer interface {
	Name() string
	// contains filtered or unexported methods
}

type SizeAnalyzer added in v0.12.0

type SizeAnalyzer struct {
}

func (SizeAnalyzer) Analyze added in v0.12.0

func (a SizeAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (SizeAnalyzer) Diff added in v0.12.0

func (a SizeAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

SizeDiff diffs two images and compares their size

func (SizeAnalyzer) Name added in v0.12.0

func (a SizeAnalyzer) Name() string

type SizeLayerAnalyzer added in v0.12.0

type SizeLayerAnalyzer struct {
}

func (SizeLayerAnalyzer) Analyze added in v0.12.0

func (a SizeLayerAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)

func (SizeLayerAnalyzer) Diff added in v0.12.0

func (a SizeLayerAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)

SizeLayerDiff diffs the layers of two images and compares their size

func (SizeLayerAnalyzer) Name added in v0.12.0

func (a SizeLayerAnalyzer) Name() string

Jump to

Keyboard shortcuts

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