{"modulePath":"github.com/peter-evans/container-diff","version":"v0.11.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package differs\n\n## Variables\n\n```go\nvar Analyzers = map[string]Analyzer{\n\t\"history\":  HistoryAnalyzer{},\n\t\"metadata\": MetadataAnalyzer{},\n\t\"file\":     FileAnalyzer{},\n\t\"layer\":    FileLayerAnalyzer{},\n\t\"apt\":      AptAnalyzer{},\n\t\"rpm\":      RPMAnalyzer{},\n\t\"pip\":      PipAnalyzer{},\n\t\"node\":     NodeAnalyzer{},\n}\n```\n\n## Functions\n\n```go\nfunc StructMapToStringMap(m map[string]struct{}) map[string]string\n```\nStructMapToStringMap converts map\\[string]struct{} to map\\[string]string knowing that the struct in the value is always empty\n\n## Types\n\n```go\ntype Analyzer interface {\n\tDiff(image1, image2 pkgutil.Image) (util.Result, error)\n\tAnalyze(image pkgutil.Image) (util.Result, error)\n\tName() string\n}\n```\n\n```go\nfunc GetAnalyzers(analyzeNames []string) ([]Analyzer, error)\n```\n\n```go\ntype AptAnalyzer struct {\n}\n```\n\n```go\nfunc (a AptAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a AptAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nAptDiff compares the packages installed by apt-get.\n\n```go\nfunc (a AptAnalyzer) Name() string\n```\n\n```go\ntype DiffRequest struct {\n\tImage1    pkgutil.Image\n\tImage2    pkgutil.Image\n\tDiffTypes []Analyzer\n}\n```\n\n```go\nfunc (req DiffRequest) GetDiff() (map[string]util.Result, error)\n```\n\n```go\ntype FileAnalyzer struct {\n}\n```\n\n```go\nfunc (a FileAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a FileAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nFileDiff diffs two packages and compares their contents\n\n```go\nfunc (a FileAnalyzer) Name() string\n```\n\n```go\ntype FileLayerAnalyzer struct {\n}\n```\n\n```go\nfunc (a FileLayerAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a FileLayerAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nFileDiff diffs two packages and compares their contents\n\n```go\nfunc (a FileLayerAnalyzer) Name() string\n```\n\n```go\ntype HistDiff struct {\n\tAdds []string\n\tDels []string\n}\n```\n\n```go\ntype HistoryAnalyzer struct {\n}\n```\n\n```go\nfunc (a HistoryAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a HistoryAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a HistoryAnalyzer) Name() string\n```\n\n```go\ntype MetadataAnalyzer struct {\n}\n```\n\n```go\nfunc (a MetadataAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a MetadataAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a MetadataAnalyzer) Name() string\n```\n\n```go\ntype MetadataDiff struct {\n\tAdds []string\n\tDels []string\n}\n```\n\n```go\ntype MultiVersionPackageAnalyzer interface {\n\tName() string\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype NodeAnalyzer struct {\n}\n```\n\n```go\nfunc (a NodeAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a NodeAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nNodeDiff compares the packages installed by apt-get.\n\n```go\nfunc (a NodeAnalyzer) Name() string\n```\n\n```go\ntype PipAnalyzer struct {\n}\n```\n\n```go\nfunc (a PipAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\n\n```go\nfunc (a PipAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nPipDiff compares pip-installed Python packages between layers of two different images.\n\n```go\nfunc (a PipAnalyzer) Name() string\n```\n\n```go\ntype RPMAnalyzer struct {\n}\n```\n\n```go\nfunc (a RPMAnalyzer) Analyze(image pkgutil.Image) (util.Result, error)\n```\nAnalyze collects information of the installed rpm packages on image.\n\n```go\nfunc (a RPMAnalyzer) Diff(image1, image2 pkgutil.Image) (util.Result, error)\n```\nDiff compares the installed rpm packages of image1 and image2.\n\n```go\nfunc (a RPMAnalyzer) Name() string\n```\nName returns the name of the analyzer.\n\n```go\ntype SingleRequest struct {\n\tImage        pkgutil.Image\n\tAnalyzeTypes []Analyzer\n}\n```\n\n```go\nfunc (req SingleRequest) GetAnalysis() (map[string]util.Result, error)\n```\n\n```go\ntype SingleVersionPackageAnalyzer interface {\n\tName() string\n\t// contains filtered or unexported methods\n}\n```\n\n","path":"github.com/peter-evans/container-diff/differs","name":"differs","synopsis":"","isRedistributable":true}
