Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageDiff ¶
type ImageDiff struct { BinaryDiff *binary.Differences PackageDiff *packagediff.Differences }
ImageDiff stores all of the differences between the two images
func (*ImageDiff) Formater ¶
func (imageDiff *ImageDiff) Formater(image1, image2 string, flagInfo *input.FlagInfo) (string, error)
Formater is a ImageDiff function that outputs the image differences based on the "-output" flag. Either to the terminal (default) or to a stored json object Input:
(string) image1 - Temp directory name of image1 (string) image2 - Temp directory name of image2 (*FlagInfo) flagInfo - A struct that holds input preference from the user
Output:
([]string) diffstrings/jsonObjectStr - Based on "-output" flag, either formated string for the terminal or a string json object
Click to show internal directories.
Click to hide internal directories.