Documentation ¶
Index ¶
- Constants
- Variables
- func BuildLayerTargets(path, target string) ([]string, error)
- func GetAddedEntries(d1, d2 pkgutil.Directory) []string
- func GetAdditions(a, b []string) []string
- func GetDeletedEntries(d1, d2 pkgutil.Directory) []string
- func GetDeletions(a, b []string) []string
- func GetMatches(a, b []string) []string
- func GetModifiedEntries(d1, d2 pkgutil.Directory) []string
- func JSONify(writer io.Writer, diff interface{}) error
- func TemplateOutput(writer io.Writer, diff interface{}, templateType string) error
- func TemplateOutputFromFormat(writer io.Writer, diff interface{}, templateType string, format string) error
- type AnalyzeResult
- type DiffResult
- type DirDiff
- type DirDiffResult
- type EntryDiff
- type FileAnalyzeResult
- type FileLayerAnalyzeResult
- type FileNameDiff
- type HistDiffResult
- type Info
- type ListAnalyzeResult
- type MetadataDiffResult
- type MultiVersionInfo
- type MultiVersionPackageAnalyzeResult
- type MultiVersionPackageDiff
- type MultiVersionPackageDiffResult
- type MultipleDirDiff
- type MultipleDirDiffResult
- type PackageDiff
- type PackageInfo
- type PackageLayerDiff
- type PackageOutput
- type Result
- type SingleVersionPackageAnalyzeResult
- type SingleVersionPackageDiffResult
- type SingleVersionPackageLayerAnalyzeResult
- type SingleVersionPackageLayerDiffResult
- type SizeAnalyzeResult
- type SizeDiff
- type SizeDiffResult
- type SizeEntry
- type SizeLayerAnalyzeResult
- type SizeLayerDiffResult
- type StrDirectoryEntry
- type StrEntryDiff
- type StrInfo
- type StrMultiVersionInfo
- type StrPackageInfo
- type StrPackageOutput
- type StrSizeDiff
- type StrSizeEntry
Constants ¶
const FSDiffOutput = `` /* 528-byte string literal not displayed */
const FSLayerDiffOutput = `` /* 601-byte string literal not displayed */
const FileAnalysisOutput = `` /* 158-byte string literal not displayed */
const FileLayerAnalysisOutput = `` /* 225-byte string literal not displayed */
const FilenameDiffOutput = `
-----Diff of {{.Filename}}-----
{{.Description}}
{{.Diff}}
`
const HistoryDiffOutput = `` /* 372-byte string literal not displayed */
const ListAnalysisOutput = `` /* 176-byte string literal not displayed */
const MetadataDiffOutput = `` /* 365-byte string literal not displayed */
const MultiVersionDiffOutput = `` /* 673-byte string literal not displayed */
const MultiVersionPackageOutput = `` /* 220-byte string literal not displayed */
const SingleVersionDiffOutput = `` /* 651-byte string literal not displayed */
const SingleVersionPackageLayerOutput = `` /* 893-byte string literal not displayed */
const SingleVersionPackageOutput = `` /* 197-byte string literal not displayed */
const SizeAnalysisOutput = `` /* 178-byte string literal not displayed */
const SizeDiffOutput = `` /* 185-byte string literal not displayed */
const SizeLayerAnalysisOutput = `` /* 178-byte string literal not displayed */
const SizeLayerDiffOutput = `` /* 202-byte string literal not displayed */
Variables ¶
var SortSize bool
Functions ¶
func BuildLayerTargets ¶
BuildLayerTargets creates a string slice of the layers found at path with the target concatenated.
func GetAddedEntries ¶
func GetAdditions ¶
Modification of difflib's unified differ
func GetDeletedEntries ¶
func GetDeletions ¶
func GetMatches ¶
func GetModifiedEntries ¶
Checks for content differences between files of the same name from different directories
func TemplateOutput ¶
Types ¶
type AnalyzeResult ¶
type DiffResult ¶
type DirDiff ¶
type DirDiff struct { Adds []pkgutil.DirectoryEntry Dels []pkgutil.DirectoryEntry Mods []EntryDiff }
type DirDiffResult ¶
type DirDiffResult DiffResult
func (DirDiffResult) OutputStruct ¶
func (r DirDiffResult) OutputStruct() interface{}
func (DirDiffResult) OutputText ¶
type FileAnalyzeResult ¶
type FileAnalyzeResult AnalyzeResult
func (FileAnalyzeResult) OutputStruct ¶
func (r FileAnalyzeResult) OutputStruct() interface{}
func (FileAnalyzeResult) OutputText ¶
type FileLayerAnalyzeResult ¶ added in v0.10.0
type FileLayerAnalyzeResult AnalyzeResult
func (FileLayerAnalyzeResult) OutputStruct ¶ added in v0.10.0
func (r FileLayerAnalyzeResult) OutputStruct() interface{}
func (FileLayerAnalyzeResult) OutputText ¶ added in v0.10.0
type FileNameDiff ¶ added in v0.5.1
type HistDiffResult ¶
type HistDiffResult DiffResult
func (HistDiffResult) OutputStruct ¶
func (r HistDiffResult) OutputStruct() interface{}
func (HistDiffResult) OutputText ¶
type Info ¶
type Info struct { Package string Info1 PackageInfo Info2 PackageInfo }
Info stores the information for one package in two different images.
type ListAnalyzeResult ¶
type ListAnalyzeResult AnalyzeResult
func (ListAnalyzeResult) OutputStruct ¶
func (r ListAnalyzeResult) OutputStruct() interface{}
func (ListAnalyzeResult) OutputText ¶
type MetadataDiffResult ¶ added in v0.9.0
type MetadataDiffResult DiffResult
func (MetadataDiffResult) OutputStruct ¶ added in v0.9.0
func (r MetadataDiffResult) OutputStruct() interface{}
func (MetadataDiffResult) OutputText ¶ added in v0.9.0
type MultiVersionInfo ¶
type MultiVersionInfo struct { Package string Info1 []PackageInfo Info2 []PackageInfo }
MultiVersionInfo stores the information for one multi-version package in two different images.
type MultiVersionPackageAnalyzeResult ¶
type MultiVersionPackageAnalyzeResult AnalyzeResult
func (MultiVersionPackageAnalyzeResult) OutputStruct ¶
func (r MultiVersionPackageAnalyzeResult) OutputStruct() interface{}
func (MultiVersionPackageAnalyzeResult) OutputText ¶
type MultiVersionPackageDiff ¶
type MultiVersionPackageDiff struct { Packages1 map[string]map[string]PackageInfo Packages2 map[string]map[string]PackageInfo InfoDiff []MultiVersionInfo }
MultiVersionPackageDiff stores the difference information between two images which could have multi-version packages.
func GetMultiVersionMapDiff ¶
func GetMultiVersionMapDiff(map1, map2 map[string]map[string]PackageInfo) MultiVersionPackageDiff
GetMultiVersionMapDiff determines the differences between two image package maps with multi-version packages This getter supports multi version packages.
type MultiVersionPackageDiffResult ¶
type MultiVersionPackageDiffResult DiffResult
func (MultiVersionPackageDiffResult) OutputStruct ¶
func (r MultiVersionPackageDiffResult) OutputStruct() interface{}
func (MultiVersionPackageDiffResult) OutputText ¶
type MultipleDirDiff ¶ added in v0.10.0
type MultipleDirDiff struct {
DirDiffs []DirDiff
}
type MultipleDirDiffResult ¶ added in v0.10.0
type MultipleDirDiffResult DiffResult
func (MultipleDirDiffResult) OutputStruct ¶ added in v0.10.0
func (r MultipleDirDiffResult) OutputStruct() interface{}
func (MultipleDirDiffResult) OutputText ¶ added in v0.10.0
type PackageDiff ¶
type PackageDiff struct { Packages1 map[string]PackageInfo Packages2 map[string]PackageInfo InfoDiff []Info }
PackageDiff stores the difference information between two images.
func GetMapDiff ¶
func GetMapDiff(map1, map2 map[string]PackageInfo) PackageDiff
GetMapDiff determines the differences between maps of package names to PackageInfo structs This getter supports only single version packages.
type PackageInfo ¶
PackageInfo stores the specific metadata about a package.
type PackageLayerDiff ¶ added in v0.12.0
type PackageLayerDiff struct {
PackageDiffs []PackageDiff
}
PackageLayerDiff stores the difference information between two images layer by layer in PackageDiff array
type PackageOutput ¶
type SingleVersionPackageAnalyzeResult ¶
type SingleVersionPackageAnalyzeResult AnalyzeResult
func (SingleVersionPackageAnalyzeResult) OutputStruct ¶
func (r SingleVersionPackageAnalyzeResult) OutputStruct() interface{}
func (SingleVersionPackageAnalyzeResult) OutputText ¶
type SingleVersionPackageDiffResult ¶
type SingleVersionPackageDiffResult DiffResult
func (SingleVersionPackageDiffResult) OutputStruct ¶
func (r SingleVersionPackageDiffResult) OutputStruct() interface{}
func (SingleVersionPackageDiffResult) OutputText ¶
type SingleVersionPackageLayerAnalyzeResult ¶ added in v0.12.0
type SingleVersionPackageLayerAnalyzeResult AnalyzeResult
func (SingleVersionPackageLayerAnalyzeResult) OutputStruct ¶ added in v0.12.0
func (r SingleVersionPackageLayerAnalyzeResult) OutputStruct() interface{}
func (SingleVersionPackageLayerAnalyzeResult) OutputText ¶ added in v0.12.0
type SingleVersionPackageLayerDiffResult ¶ added in v0.12.0
type SingleVersionPackageLayerDiffResult DiffResult
func (SingleVersionPackageLayerDiffResult) OutputStruct ¶ added in v0.12.0
func (r SingleVersionPackageLayerDiffResult) OutputStruct() interface{}
func (SingleVersionPackageLayerDiffResult) OutputText ¶ added in v0.12.0
type SizeAnalyzeResult ¶ added in v0.12.0
type SizeAnalyzeResult AnalyzeResult
func (SizeAnalyzeResult) OutputStruct ¶ added in v0.12.0
func (r SizeAnalyzeResult) OutputStruct() interface{}
func (SizeAnalyzeResult) OutputText ¶ added in v0.12.0
type SizeDiffResult ¶ added in v0.12.0
type SizeDiffResult DiffResult
func (SizeDiffResult) OutputStruct ¶ added in v0.12.0
func (r SizeDiffResult) OutputStruct() interface{}
func (SizeDiffResult) OutputText ¶ added in v0.12.0
type SizeLayerAnalyzeResult ¶ added in v0.12.0
type SizeLayerAnalyzeResult AnalyzeResult
func (SizeLayerAnalyzeResult) OutputStruct ¶ added in v0.12.0
func (r SizeLayerAnalyzeResult) OutputStruct() interface{}
func (SizeLayerAnalyzeResult) OutputText ¶ added in v0.12.0
type SizeLayerDiffResult ¶ added in v0.12.0
type SizeLayerDiffResult DiffResult
func (SizeLayerDiffResult) OutputStruct ¶ added in v0.12.0
func (r SizeLayerDiffResult) OutputStruct() interface{}
func (SizeLayerDiffResult) OutputText ¶ added in v0.12.0
type StrDirectoryEntry ¶
type StrEntryDiff ¶
type StrInfo ¶
type StrInfo struct { Package string Info1 StrPackageInfo Info2 StrPackageInfo }
type StrMultiVersionInfo ¶
type StrMultiVersionInfo struct { Package string Info1 []StrPackageInfo Info2 []StrPackageInfo }