Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func BuildLayerTargets(path, target string) ([]string, error)
 - func CheckImageID(image string) bool
 - func CheckImageURL(image string) bool
 - func CheckTar(image string) bool
 - func GetAddedEntries(d1, d2 Directory) []string
 - func GetAdditions(a, b []string) []string
 - func GetDeletedEntries(d1, d2 Directory) []string
 - func GetDeletions(a, b []string) []string
 - func GetImageLayers(pathToImage string) []string
 - func GetMatches(a, b []string) []string
 - func GetModifiedEntries(d1, d2 Directory) []string
 - func GetSize(path string) int64
 - func JSONify(diff interface{}) error
 - func TemplateOutput(diff interface{}, templateType string) error
 - func UnTar(filename string, target string) error
 - type AnalyzeResult
 - type CloudPrepper
 - type ConfigObject
 - type ConfigSchema
 - type DiffResult
 - type DirDiff
 - type DirDiffResult
 - type Directory
 - type DirectoryEntry
 - type EntryDiff
 - type Event
 - type FileAnalyzeResult
 - type HistDiffResult
 - type IDPrepper
 - type Image
 - type ImageHistoryItem
 - type ImagePrepper
 - type Info
 - type ListAnalyzeResult
 - type MultiVersionInfo
 - type MultiVersionPackageAnalyzeResult
 - type MultiVersionPackageDiff
 - type MultiVersionPackageDiffResult
 - type PackageDiff
 - type PackageInfo
 - type PackageOutput
 - type Prepper
 - type Result
 - type SingleVersionPackageAnalyzeResult
 - type SingleVersionPackageDiffResult
 - type StrDirectoryEntry
 - type StrEntryDiff
 - type StrInfo
 - type StrMultiVersionInfo
 - type StrPackageInfo
 - type StrPackageOutput
 - type TarPrepper
 
Constants ¶
const FSDiffOutput = `` /* 528-byte string literal not displayed */
    const FileAnalysisOutput = `` /* 158-byte string literal not displayed */
    const HistoryDiffOutput = `` /* 372-byte string literal not displayed */
    const ListAnalysisOutput = `` /* 176-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 SingleVersionPackageOutput = `` /* 197-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 CheckImageID ¶
func CheckImageURL ¶
func GetAddedEntries ¶
func GetAdditions ¶
Modification of difflib's unified differ
func GetDeletedEntries ¶
func GetDeletions ¶
func GetImageLayers ¶
func GetMatches ¶
func GetModifiedEntries ¶
Checks for content differences between files of the same name from different directories
func TemplateOutput ¶
Types ¶
type AnalyzeResult ¶
type CloudPrepper ¶
type CloudPrepper struct {
	ImagePrepper
}
    CloudPrepper prepares images sourced from a Cloud registry
type ConfigObject ¶
type ConfigObject struct {
	Env []string `json:"Env"`
}
    type ConfigSchema ¶
type ConfigSchema struct {
	Config  ConfigObject       `json:"config"`
	History []ImageHistoryItem `json:"history"`
}
    type DiffResult ¶
type DirDiff ¶
type DirDiff struct {
	Adds []DirectoryEntry
	Dels []DirectoryEntry
	Mods []EntryDiff
}
    func DiffDirectory ¶
DiffDirectory takes the diff of two directories, assuming both are completely unpacked
type DirDiffResult ¶
type DirDiffResult DiffResult
func (DirDiffResult) OutputStruct ¶
func (r DirDiffResult) OutputStruct() interface{}
func (DirDiffResult) OutputText ¶
func (r DirDiffResult) OutputText(diffType string) error
type DirectoryEntry ¶
func GetDirectoryEntries ¶
func GetDirectoryEntries(d Directory) []DirectoryEntry
type FileAnalyzeResult ¶
type FileAnalyzeResult AnalyzeResult
func (FileAnalyzeResult) OutputStruct ¶
func (r FileAnalyzeResult) OutputStruct() interface{}
func (FileAnalyzeResult) OutputText ¶
func (r FileAnalyzeResult) OutputText(analyzeType string) error
type HistDiffResult ¶
type HistDiffResult DiffResult
func (HistDiffResult) OutputStruct ¶
func (r HistDiffResult) OutputStruct() interface{}
func (HistDiffResult) OutputText ¶
func (r HistDiffResult) OutputText(diffType string) error
type IDPrepper ¶
type IDPrepper struct {
	ImagePrepper
}
    type Image ¶
type Image struct {
	Source string
	FSPath string
	Config ConfigSchema
}
    type ImageHistoryItem ¶
type ImageHistoryItem struct {
	CreatedBy string `json:"created_by"`
}
    type ImagePrepper ¶
func (ImagePrepper) GetImage ¶
func (p ImagePrepper) GetImage() (Image, error)
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 ¶
func (r ListAnalyzeResult) OutputText(resultType string) error
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 ¶
func (r MultiVersionPackageAnalyzeResult) OutputText(resultType string) error
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 ¶
func (r MultiVersionPackageDiffResult) OutputText(diffType string) error
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 PackageOutput ¶
type SingleVersionPackageAnalyzeResult ¶
type SingleVersionPackageAnalyzeResult AnalyzeResult
func (SingleVersionPackageAnalyzeResult) OutputStruct ¶
func (r SingleVersionPackageAnalyzeResult) OutputStruct() interface{}
func (SingleVersionPackageAnalyzeResult) OutputText ¶
func (r SingleVersionPackageAnalyzeResult) OutputText(diffType string) error
type SingleVersionPackageDiffResult ¶
type SingleVersionPackageDiffResult DiffResult
func (SingleVersionPackageDiffResult) OutputStruct ¶
func (r SingleVersionPackageDiffResult) OutputStruct() interface{}
func (SingleVersionPackageDiffResult) OutputText ¶
func (r SingleVersionPackageDiffResult) OutputText(diffType string) error
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
}
    type StrPackageInfo ¶
type StrPackageOutput ¶
type TarPrepper ¶
type TarPrepper struct {
	ImagePrepper
}