differs

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzers = map[string]Analyzer{
	"history": HistoryAnalyzer{},
	"file":    FileAnalyzer{},
	"apt":     AptAnalyzer{},
	"pip":     PipAnalyzer{},
	"node":    NodeAnalyzer{},
}

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Diff(image1, image2 utils.Image) (utils.Result, error)
	Analyze(image utils.Image) (utils.Result, error)
	Name() string
}

func GetAnalyzers

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

type AptAnalyzer

type AptAnalyzer struct {
}

func (AptAnalyzer) Analyze

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

func (AptAnalyzer) Diff

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

AptDiff compares the packages installed by apt-get.

func (AptAnalyzer) Name

func (a AptAnalyzer) Name() string

type DiffRequest

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

func (DiffRequest) GetDiff

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

type FileAnalyzer

type FileAnalyzer struct {
}

func (FileAnalyzer) Analyze

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

func (FileAnalyzer) Diff

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

FileDiff diffs two packages and compares their contents

func (FileAnalyzer) Name

func (a FileAnalyzer) Name() string

type HistDiff

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

type HistoryAnalyzer

type HistoryAnalyzer struct {
}

func (HistoryAnalyzer) Analyze

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

func (HistoryAnalyzer) Diff

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

func (HistoryAnalyzer) Name

func (a HistoryAnalyzer) Name() 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 utils.Image) (utils.Result, error)

func (NodeAnalyzer) Diff

func (a NodeAnalyzer) Diff(image1, image2 utils.Image) (utils.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 utils.Image) (utils.Result, error)

func (PipAnalyzer) Diff

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

PipDiff compares pip-installed Python packages between layers of two different images.

func (PipAnalyzer) Name

func (a PipAnalyzer) Name() string

type SingleRequest

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

func (SingleRequest) GetAnalysis

func (req SingleRequest) GetAnalysis() (map[string]utils.Result, error)

type SingleVersionPackageAnalyzer

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

Jump to

Keyboard shortcuts

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