Documentation ¶
Index ¶
- Constants
- func BuildLayerTargets(path, target string) ([]string, error)
- func CheckImageID(image string) bool
- func CheckImageURL(image string) bool
- func CheckTar(image string) bool
- func DirToJSON(path string, target string, deep bool) error
- func ExtractTar(path string) error
- 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 ImageToTar(cli client.APIClient, image, tarName string) (string, error)
- func JSONify(diff interface{}) error
- func SetDockerEngine(useDocker bool)
- func TarToDir(tarPath string, deep bool) (string, string, error)
- func TemplateOutput(diff interface{}) error
- func UnTar(filename string, path string) error
- func ValidDockerVersion() (bool, error)
- type CloudPrepper
- type DiffResult
- type DirDiff
- type DirDiffResult
- type Directory
- type Event
- type HistDiff
- type HistDiffResult
- type IDPrepper
- type Image
- type ImagePrepper
- type Info
- type MultiVersionInfo
- type MultiVersionPackageDiff
- type MultiVersionPackageDiffResult
- type PackageDiff
- type PackageDiffResult
- type PackageInfo
- type Prepper
- type TarPrepper
Constants ¶
const FSOutput = `` /* 462-byte string literal not displayed */
const HistoryOutput = `` /* 366-byte string literal not displayed */
const MultiVersionOutput = `` /* 592-byte string literal not displayed */
const SingleVersionOutput = `` /* 648-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func BuildLayerTargets ¶
BuildLayerTargets creates a string slice of the layers found at path with the target concatenated.
func CheckImageID ¶
func CheckImageURL ¶
func DirToJSON ¶
DirToJSON records the directory structure starting at the provided path as in a json file.
func ExtractTar ¶
ExtractTar extracts the tar and any nested tar at the given path. After execution the original tar file is removed and the untarred version is in it place.
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 ImageToTar ¶
ImageToTar writes an image to a .tar file
func SetDockerEngine ¶
func SetDockerEngine(useDocker bool)
func TemplateOutput ¶
func TemplateOutput(diff interface{}) error
func UnTar ¶
UnTar takes in a path to a tar file and writes the untarred version to the provided target. Only untars one level, does not untar nested tars.
func ValidDockerVersion ¶
ValidDockerVersion determines if there is a Docker client of the necessary version locally installed.
Types ¶
type CloudPrepper ¶
type CloudPrepper struct {
ImagePrepper
}
CloudPrepper prepares images sourced from a Cloud registry
func (CloudPrepper) ImageToFS ¶
func (p CloudPrepper) ImageToFS() (string, error)
type DiffResult ¶
type DiffResult interface { GetStruct() DiffResult OutputText(diffType string) error }
type DirDiff ¶
func DiffDirectory ¶
type DirDiffResult ¶
func (DirDiffResult) GetStruct ¶
func (m DirDiffResult) GetStruct() DiffResult
func (DirDiffResult) OutputText ¶
func (m DirDiffResult) OutputText(diffType string) error
type HistDiffResult ¶
func (HistDiffResult) GetStruct ¶
func (m HistDiffResult) GetStruct() DiffResult
func (HistDiffResult) OutputText ¶
func (m HistDiffResult) OutputText(diffType string) error
type IDPrepper ¶
type IDPrepper struct {
ImagePrepper
}
type ImagePrepper ¶
type ImagePrepper struct {
Source string
}
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 MultiVersionInfo ¶
type MultiVersionInfo struct { Package string Info1 []PackageInfo Info2 []PackageInfo }
MultiVersionInfo stores the information for one multi-version package in two different images.
type MultiVersionPackageDiff ¶
type MultiVersionPackageDiff struct { Image1 string Packages1 map[string]map[string]PackageInfo Image2 string Packages2 map[string]map[string]PackageInfo InfoDiff []MultiVersionInfo }
MultiVersionPackageDiff stores the difference information between two images which could have multi-version packages.
type MultiVersionPackageDiffResult ¶
type MultiVersionPackageDiffResult struct { DiffType string Diff MultiVersionPackageDiff }
func GetMultiVersionMapDiff ¶
func GetMultiVersionMapDiff(map1, map2 map[string]map[string]PackageInfo, img1, img2 string) MultiVersionPackageDiffResult
GetMultiVersionMapDiff determines the differences between two image package maps with multi-version packages This getter supports multi version packages.
func (MultiVersionPackageDiffResult) GetStruct ¶
func (m MultiVersionPackageDiffResult) GetStruct() DiffResult
func (MultiVersionPackageDiffResult) OutputText ¶
func (m MultiVersionPackageDiffResult) OutputText(diffType string) error
type PackageDiff ¶
type PackageDiff struct { Image1 string Packages1 map[string]PackageInfo Image2 string Packages2 map[string]PackageInfo InfoDiff []Info }
PackageDiff stores the difference information between two images.
type PackageDiffResult ¶
type PackageDiffResult struct { DiffType string Diff PackageDiff }
func GetMapDiff ¶
func GetMapDiff(map1, map2 map[string]PackageInfo, img1, img2 string) PackageDiffResult
GetMapDiff determines the differences between maps of package names to PackageInfo structs This getter supports only single version packages.
func (PackageDiffResult) GetStruct ¶
func (m PackageDiffResult) GetStruct() DiffResult
func (PackageDiffResult) OutputText ¶
func (m PackageDiffResult) OutputText(diffType string) error
type PackageInfo ¶
PackageInfo stores the specific metadata about a package.
type TarPrepper ¶
type TarPrepper struct {
ImagePrepper
}
func (TarPrepper) ImageToFS ¶
func (p TarPrepper) ImageToFS() (string, error)